My git setup screams at me when I try to stage files with windows line endings.  If we put this in the gitconfig...<div><br></div><div>An alternative would be to have the autotester reject pulls that add \r\n's.</div><div>
<br></div><div>Relying on all contributors to do the setup themselves doesn't seem like it will work.<br><br><div class="gmail_quote">On Wed, Jan 16, 2013 at 8:47 AM, Walter Bright <span dir="ltr"><<a href="mailto:walter@digitalmars.com" target="_blank">walter@digitalmars.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have had a bunch of trouble lately with git, which I suspect was the result of checking in a new file that had CRLF line endings instead of LF. I know that git is supposed to be able to deal with this, but my experience suggests it has a schizophrenic behavior regarding this.<br>

<br>
My git checkin procedure is done with a script that prefaces it with:<br>
<br>
tolf filename<br>
detab filename<br>
<br>
tolf ensures that the line endings are LF, and detab converts tabs to spaces. This canonicalizes all entries into git, and avoids all the ugly problems with CRLF.<br>
<br>
Please ensure that you add these to your checkin workflow, or something equivalent. No, the .git settings are not sufficient.<br>
<br>
(BTW, if someone wrote a D source code formatter, I'd love to add that to our checkin process!)<br>
______________________________<u></u>_________________<br>
dmd-internals mailing list<br>
<a href="mailto:dmd-internals@puremagic.com" target="_blank">dmd-internals@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-internals" target="_blank">http://lists.puremagic.com/<u></u>mailman/listinfo/dmd-internals</a><br>
</blockquote></div><br></div>