EOL best practise
Eizua
eizua at openmailbox.org
Tue Oct 11 17:44:39 UTC 2016
On Tue, 11 Oct 2016 11:39:35 +0000, Uwe Brauer wrote:
> I am going to set up two fresh new repos, which I will share
>
> - with someone whomost of the time uses MSDOS line ending
> convention
>
> - and the other one who will use the MaC line ending convention.
>
> So in that case what is the best setting?
>
> Should all the users just add the following line to their global .hgrc
> files:
>
> [extensions]
> eol =
>
> Or in addition have the configuration line
>
> [eol]
> native = LF
>
> Which again should have all of the users in their global setting,
> otherwise things might go ugly.
>
> Any comments?
If the Windows user has a text editor/IDE that can work with LF
line endings (e.g., Notepad++), why not stick with that so you won't need
to do any of this?
You might also want to consider using EditorConfig
(http://editorconfig.org/) if both your editors/IDEs support it.
/eizua
More information about the Mercurial
mailing list