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

Re: Quick question: end of lines

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 28, 2006, 20:07 UTC
Message-ID
<Pine.LNX.4.63.0602282101530.10710@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<f898cca90602281032n6603bf14q@mail.gmail.com>
Hi,
On Tue, 28 Feb 2006, Emmanuel Guerin wrote:
> Is it possible to checkout sources out of the GIT repository with
> Windows style end of lines?
No.

As far as git is concerned, every versioned file is equal. IMHO this decision is good, since

- different handling is more complicated (you have to keep track of the 
file type), and
- it is not really worth doing.

Windows can handle Unix line endings quite properly (with the notable exception of notepad.exe), and even Apple has learnt that it might be a stupid idea to insist on being different when it's just not worth it.

The only reason I would accept: you have to work with MS-DOS tools. But even in this case, I'd rather write a wrapper which converts to DOS line endings, executes the tool, and converts back.

Hth, Dscho

Previous: Emmanuel GuerinNext: Martin Langhoff
Message 2 of 6 in “Quick question: end of lines”
  1. Emmanuel GuerinFeb 28, 2006
  2. Johannes SchindelinFeb 28, 2006
  3. Martin LanghoffFeb 28, 2006
  4. Emmanuel GuerinMar 1, 2006
  5. Martin LanghoffMar 1, 2006
  6. Junio C HamanoMar 1, 2006

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.