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

Re: Problems with autoCRLF?

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Mar 9, 2007, 21:38 UTC
Message-ID
<Pine.LNX.4.64.0703091337270.10832@woody.linux-foundation.org>
In-Reply-To
<200703092051.47441.robin.rosenberg.lists@dewire.com>
On Fri, 9 Mar 2007, Robin Rosenberg wrote:
Show 10 quoted lines
> fredag 09 mars 2007 19:15 skrev Raimund Bauer:
> > Is it really intended that with a setting core.autoCRLF=true textfiles
> > are checked out with crlf-lineendings on linux-boxes?
> > 
> > I found out because the git-compilation broke ...
> > 
> > Now using core.autocrlf=input ;-)
> 
> My guess is it's good for testing without having to compromise your 
> computer (or with cygwin).

Exactly. I'd much rather have git work consistently across different architectures, so that we can develop and test the CRLF code under UNIX, without having to actually have to use the brain damage that is Windows.

So yes, don't set "core.autocrlf=true" under UNIX. It will "work", but it will work exactly in the sense of "you can test what we'd do under Windows" ;)

		Linus
Previous: Robin RosenbergNext: Junio C Hamano
Message 3 of 5 in “Problems with autoCRLF?”
  1. Raimund BauerMar 9, 2007
  2. Robin RosenbergMar 9, 2007
  3. Linus TorvaldsMar 9, 2007
  4. Junio C HamanoMar 10, 2007
  5. Raimund BauerMar 10, 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.