Re: [PATCH master] convert: The native line-ending is \r\n on MinGW
- From
Tvangeste <i.4m.l33t@yandex.ru>
- Date
- Aug 13, 2013, 17:44 UTC
- Message-ID
- <loom.20130813T193141-905@post.gmane.org>
- In-Reply-To
- <loom.20130415T220316-790@post.gmane.org>
Brice Lambson <bricelam <at> live.com> writes:
Show 6 quoted lines
> +1, this is a significant issue downstream in Git for Windows: > > https://github.com/msysgit/git/issues/57 > > Effectively this renders .gitattributes useless for the scenario of > enforcing normalized line ending characters.
+100
Folks, the problem is still there, with the very latest Git built with MinGW on Windows. Having eol=native in gitattributes means *LF* EOLs on Windows/MinGW.
So, essentially, eol=native is completely broken. And this is the most useful option to put into gitattributes and share among those working on the project.
Currently, I have to put eol=crlf there, and that means that those working on Linux will end up with CRLF files in their working copies.
The link quoted above does contain an additional fix that resolves the problem.
Thanks, --Tvangeste