Subject: Re: autocrlf

From: Andy Parkins <[email-masked]>
Date: Fri, 18 May 2007 13:01:18 +0100

On Friday 2007 May 18, Raimund Bauer wrote:

> you need to set core.autoCrlf=input
>
> I had the same problem some time ago ...

The documentation says:

core.autocrlf::
    If true, makes git convert `CRLF` at the end of lines in text files to
    `LF` when reading from the filesystem, and convert in reverse when
    writing to the filesystem.  The variable can be set to
    'input', in which case the conversion happens only while
    reading from the filesystem but files are written out with
    `LF` at the end of lines.  Currently, which paths to consider
    "text" (i.e. be subjected to the autocrlf mechanism) is
    decided purely based on the contents.

That is: "input" ensures that CRLF is stripped on input to the repository.  
While that is fine in some circumstances, the situation I'm describing here 
is what happens on output from the repository.

Andy

-- 
Dr Andy Parkins, M Eng (hons), MIET
[email-masked]