Hi Sebastian,
Am 2013-04-13 15:03, schrieb Sebastian Schuberth:
> [...] As long as this is the case I guess there will be some confusion about
> what "native" is and how line end conversion works. Maybe some day all
> of the Git functionality will be available in libgit2, and someone
> could come up with a Git client that just links against libgit2.
Ok, thanks!
> Why are you bothering with .gitattributes and core.eol after all and
> not simply use core.autocrlf=true, which is what the Git for Windows
> installer suggests by default?
Well... when I started with Git and was only learning it, things were already
overwhelming enough: a complicated repository conversion from Subversion, including
history rewriting, occupied me enough so that I did not want to dig through yet another
frustratingly complex topic. So I decided to defer this until later, and the only safe
way to do this seemed to be setting core.autocrlf=false even on Windows (I was
planning / intending for a single, controlled "renormalize line endings" commit, rather
than Git interfering with things when I was not prepared for them).
Then, my repository has many kinds of text files: not just C/C++ source, but also many
kinds of script, and even several data files have text format. Especially with all those
I wanted to initiate and review any eol normalization explicitly.
And finally,
http://timclem.wordpress.com/2012/03/01/mind-the-end-of-your-line/ clearly
labels core.autocrlf etc. as "The Old System", and .gitattributes as "The New
System" (which also seems much simpler to understand), so I wanted to get it "right"
from the start. ;)
Same problem description, with proposal of a fix.
I searched some more, the above is referring to
http://thread.gmane.org/gmane.comp.version-control.msysgit/17193/focus=17194
But I wonder if this commit ever made it somewhere?
Best regards,
Carsten