From: Andy Parkins Date: Fri, 18 May 2007 12:01:18 GMT Subject: Re: autocrlf Message-ID: <200705181301.25749.andyparkins@gmail.com> In-Reply-To: <1179484482.6453.19.camel@localhost> 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 andyparkins@gmail.com