On 30.08.2011 23:22, [email protected] wrote:
What's the correct configuration for making sure line endings come out
right? I forked the repo and made some changes, and I found that VS
had turned all the line endings in the .csproj files to CRLF and
created a bogus diff.
I set git config core.autocrlf false, which I thought was supposed to
strip out the CRLF in the diffs, but it doesn't seem to make a
difference.
To the contrary. autocrlf=false tells git to keep the files exactly as
they are. This may lead to spurious changes when windows tools rewrite
those files. I normally use bot autocrlf and safecrlf set to true. This
should ensure that files in the repo always are LF-only and that
mixed-CRLF/LF files need manual fixing before committing.
But this is only general advice, I do not know how the NHibernate repo
is configured.
Best Regards, David