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

Re: Quick question: end of lines

From
EGEmmanuel Guerin <emmanuel@guerin.fr.eu.org>
Date
Mar 1, 2006, 00:12 UTC
Message-ID
<f898cca90602281612n777a4f17m@mail.gmail.com>
In-Reply-To
<46a038f90602281215n259066b1qe2e6421625b82e75@mail.gmail.com>
2006/3/1, Martin Langhoff <martin.langhoff@gmail.com>:
> Why is this important?
>
> (I am thinking: any reasonably good text editor will know how to deal
> with unix newlines, but you may have different reasons).

Actually, you have found the problem. My particular setup is that Visual Studio is used on Windows. The editor will handle unix end of lines all right, but tends to insert windows ones when modifications are made. This leads to files with inconsistent end of lines, and nightmares with merges. We use Subversion for the moment, and we have to make sure that all text files are declared properly in svn to avoid conflicts.

What I begin to realize is that the only possibility probably lies in using a tool that converts the modified files "on the fly" before commits. I just want to make sure that no other solution was found by others facing a similar problem.

Anyway, thanks for the answers,
Emmanuel
Previous: Martin LanghoffNext: Martin Langhoff
Message 4 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.