[phobos] [dmd-internals] svn-->git migration

Walter Bright walter at digitalmars.com
Tue Jan 25 01:13:29 PST 2011



Johannes Pfau wrote:
>
> The "core.autocrlf" section on http://progit.org/book/ch7-1.html says:
>
> "Git can handle this by auto-converting CRLF line endings into LF when
> you commit, and vice versa when it checks out code onto your filesystem.
> You can turn on this functionality with the core.autocrlf setting. If
> you’re on a Windows machine, set it to true — this converts LF endings
> into CRLF when you check out code"
>
> and
>
> "If you’re on a Linux or Mac system that uses LF line endings, then you
> don’t want Git to automatically convert them when you check out files;
> however, if a file with CRLF endings accidentally gets introduced, then
> you may want Git to fix it. You can tell Git to convert CRLF to LF on
> commit but not the other way around by setting core.autocrlf to input"
>
>   

Here's what happens - someone checks in CRLF files on Windows. Then I 
check out the repository on Linux. Now, git status claims that these 
files are "different" on Linux and need checking in again.

There really is no hope for this, other than ensuring that all source 
files checked in are LF, nor CRLF, terminated.


More information about the phobos mailing list