git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: autocrlf

From
APAndy Parkins <andyparkins@gmail.com>
Date
May 18, 2007, 12:01 UTC
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
Previous: Raimund BauerNext: Johannes Sixt
Message 3 of 5 in “autocrlf”
  1. Andy ParkinsMay 18, 2007
  2. Raimund BauerMay 18, 2007
  3. Andy ParkinsMay 18, 2007
  4. Johannes SixtMay 18, 2007
  5. Andy ParkinsMay 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.