[Mono-dev] Git line-ending issues
m.j.hutchinson at gmail.com
Thu Jan 6 14:35:54 EST 2011
On Thu, Jan 6, 2011 at 2:02 PM, Stifu <stifu at free.fr> wrote:
> Hi guys,
> I'm having issues with a commit I did (d'oh :(), and would like help to
> clean up my mess.
> The commit can be seen here:
> I only removed a few lines in the file, but the whole file shows up as
> changed. From what I understand, this is due to a difference in line-ending
> Looking at the .gitattributes file in the same folder, I see certain files
> (including the one I modified) are specified as having a certain line-ending
> encoding (CRLF).
The .gitattributes format is rather unintuitive.
"crlf" means the file is stored as lf in the repo, but converted
to/from crlf on windows.
"-crlf" explicitly disables conversions, in case the user has
autoconversion enabled for all files.
Are you perhaps using a git tools that ignores these attributes?
More information about the Mono-devel-list