[Mono-dev] Git line-ending issues

stifu at free.fr stifu at free.fr
Fri Jan 7 02:17:20 EST 2011


Alright. But my main question was about what I should do specifically about the commit I mentioned.
Should I restore the line endings to what they were, or leave things as is? Or does it not matter either way?
Thanks.

----- Mail Original -----
De: "Michael Hutchinson" <m.j.hutchinson at gmail.com>
À: stifu at free.fr
Cc: mono-devel-list at lists.ximian.com
Envoyé: Jeudi 6 Janvier 2011 22:12:14 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [Mono-dev] Git line-ending issues

On Thu, Jan 6, 2011 at 3:38 PM,  <stifu at free.fr> wrote:
> No, shamefully I thought I could get away with directly editing the file from the GitHub web interface (which actually works fine with files that aren't "-crlf"). I'll refrain from doing so in the future, as I guess it's not recommended (can't even preview).
> Do you have an opinion about how I should fix this issue (if there is actually anything to fix)?

Don't use tools that autoconvert and ignore .gitattributes.

> And aren't all those files defined in the .gitattributes file only there for historical reasons, rather than being something desirable? I wouldn't mind going through files (WinForms only, in my case) to convert them all to the same format, if it's something that sounds any good.

Conversion without a good reason is bad because it adds a ton of noise
to history, for example annotation.becomes ~useless.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-devel-list mailing list