Re: mingw, windows, crlf/lf, and git
- From
Johannes Sixt <j.sixt@eudaptics.com>
- Date
- Feb 14, 2007, 16:16 UTC
- Message-ID
- <45D335C3.E28D28E0@eudaptics.com>
- In-Reply-To
- <Pine.LNX.4.64.0702131053110.8424@woody.linux-foundation.org>
Linus Torvalds wrote:
Show 11 quoted lines
> > On Tue, 13 Feb 2007, Junio C Hamano wrote: > > > > Thanks, applied. I think git-apply has separate codepaths for > > both reading and writing; I won't look into them before 1.5.0 > > but people are welcome to help advancing the cause before I get > > to it ;-). > > Actually, I did it myself. > > This is a "lazy man's auto-CRLF", and it really is pretty simple.
Thanks a lot, busy beaver! I gave this a quick spin with a few interesting operations: merges and rebase. Merges leave the merge results with only LFs behind. Rebasing seems to work as expected (working files have CRLFs), except when merges are needed.
Doesn't git-unpack-file also need to call into the converter?
-- Hannes