Re: mingw, windows, crlf/lf, and git
- From
Sam Ravnborg <sam@ravnborg.org>
- Date
- Feb 14, 2007, 08:41 UTC
- Message-ID
- <20070214084121.GB25617@uranus.ravnborg.org>
- In-Reply-To
- <Pine.LNX.4.64.0702131524130.3604@woody.linux-foundation.org>
> > This whole auto CRLF things seems to deal with DOS issues that I personally > > have not encountered since looong time ago. > > Maybe you stopped using DOS a loong time ago ;)
Unfortunately not. (Sitting with a Windows 2000 laptop atm but saved by ssh).
> > It's definitely an issue. Yes, all windows programs basically *understand* > files that have just LF. But almost all of them will *write* files with > CRLF.
So the issue with git supporting CRLF -> LF is to make interoperability between UNIX* programs and Windows programs which is anohter domain.
My main objective is the proposal to make a conversion default when many users do not need it. For the UNIX* compatibility thing having conversion at lowest layer make sense.
> (Which means that I suspect I made the default for "auto_crlf" be wrong in > my patch: I probably should not default to checking out with CRLF, but > checking out with just LF, and only do the CRLF->LF conversion on input).
Expect that it seems a few br0ken programs yet does not support LF as end-of-line marker - so .gitattriutes make take special care here.
Sam