<div>Hi,</div><div><br></div><div>The clean solution to this issue seems to be documented at <a href="http://line-endings.gitrecipes.de/">http://line-endings.gitrecipes.de/</a> . </div><div><br></div><div><br></div><div>For a quick fix, this would be the way on the Windows machine:</div>

<div><br></div>To use:<br><br><blockquote style="margin:0 0 0 40px;border:none;padding:0px">git config core.autocrlf off<br>git config --global core.autocrlf off</blockquote><div><br></div><div>And here's how to apply it, from #git:</div>

<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>_ikke_: You do that after clone. A git reset --hard might be needed to fix the line endings again</div></div><div><div>ojacobson: you'll need to do it in each clone, after cloning; every git-checkout *after* that will use the new setting</div>

</div></blockquote><div><div><br></div><div>So it should look like this:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>git clone [Gambit's repo URL]</div></div><div>

<div>cd [cloned gambit repo dir]</div></div><div><div>git config core.autocrlf off</div></div><div><div>git reset --hard</div></div></blockquote><div><br></div><div>(or as an alternative to the last line, "git checkout -- ." or "git checkout [branch name]" should deliver too apparently.)</div>

<div><br></div><div>Brgds</div><div><br><div class="gmail_quote">2013/4/17 Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span><br><div>[...]</div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Yep, differences are in end-of-line encoding, probably due to my git settings. Didn't catch it because I ran diff as `diff -qw test1.ok test1.out'.<br>


<br>
</div>I see.  So the file with the cr-lf end-of-line encoding is the test1.ok file, not the test1.out file (which has lf end-of-line encoding reliably on all OSes).  I wonder how I could force git to treat test1.ok as a binary file.  In fact I don't see how git can be so confident that test1.ok is a text file to change the lf to cr-lf.<br>


<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</div></div></blockquote></div><br></div>