Comment #2 on issue 1082 by
tanza...@gmail.com: Autocrlf should be false by
default
http://code.google.com/p/tortoisegit/issues/detail?id=1082
This is a religious issue, and you're unlikely to convince anyone either
way.
The rationale for false is: The source control system should not change
line endings. StackOverflow is very vocal in support of this. However,
the most highly-voted answers are from more than two years ago, when the
tooling was much more immature and often reported that every line had
changed. Git is much more mature on Windows today, and this should not be
a problem.
The rationale for true is: the Git repository should *always* be in LF.
This is the standard for cross-platform projects, this is the standard for
Github, and it's best if you follow the (de facto) standard. When you add
a new file to a project in Visual Studio, it will have CRLF line endings.
If autocrlf is false, then it will get committed as CRLF.
Msysgit discussed this issue five years ago, and decided on autocrlf=true.
Since both TortoiseGit and GitExtensions install Msysgit by default, this
affects the two most popular Windows GUI tools.
http://code.google.com/p/msysgit/issues/detail?id=21
Github is the 800-pound elephant in the Git hoisting space, and they
strongly advocate for autocrlf=true. Their own Windows client
creates .gitattributes with text=auto, which ignores autocrlf and forces
line endings to be converted.
Microsoft shipped the Visual Studio Git module with .gitattributes set to
crlf. However, they are preparing an update to change the default to
text=auto as well.
http://www.hanselman.com/blog/GitSupportForVisualStudioGitTFSAndVSPutIntoContext.aspx
(see comment from a Microsoft developer on February 6, 2013)
At this point, it's no longer a matter of your own preferences. *All* the
major Windows Git GUIs have decided that Git repositories should be
native-LF. If your repository is in CRLF format, causing mixed
line-endings when autocrlf=true, you can either do a commit that changes
all the files to LF, or set .gitattributes to make the repository format
crlf -- regardless of the autocrlf setting.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings