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

Re: EOL handling (EGit/svn/Windows)

From
Torsten Bögershausen <tboegi@web.de>
Date
Feb 10, 2015, 05:49 UTC
Message-ID
<54D99BED.8010005@web.de>
In-Reply-To
<CAA01Csrp0ZOouM5zhVuHQW9sWCnbMMLRkmcbRtgsU3k8wNtSqw@mail.gmail.com>
On 02/09/2015 11:22 PM, Piotr Krukowiecki wrote:
 >Any other suggestions?

My, somewhat personally, suggestion: If there is more than one developer, don't use core.autocrlf at all- it is a local setting, which doesn't travel through the repo, and is slightly different in Git Egit, depending on the version.

Git for Windows has it enabled by default, Cygwin has not.

Which Git versions are you using ? How many people are there involved, how many on Windows, how many on Linux ? Do you want to commit to svn, or is this a one-time conversion ?

If it is a one-time conversion, and you continue to work in Git only,
then the cleanest, most portable and future proof way is to use the 
.gitattributes file,
add that to the repo, do the normalization  and push.
A line like this:
* text=auto
is the easiest way.

Have a look at https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html take a tee or coffee, do some experiments first with a dummy repo, but all the client OS/Gits involved. Please let us know the result (or feel free to ask more questions)

Previous: Piotr KrukowieckiNext: Piotr Krukowiecki
Message 2 of 6 in “EOL handling (EGit/svn/Windows)”
  1. Piotr KrukowieckiFeb 9, 2015
  2. Torsten BögershausenFeb 10, 2015
  3. Piotr KrukowieckiFeb 10, 2015
  4. Torsten BögershausenFeb 10, 2015
  5. Piotr KrukowieckiFeb 11, 2015
  6. Piotr KrukowieckiFeb 11, 2015

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.