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

Re: [PATCH master] convert: The native line-ending is \r\n on MinGW

From
Tvangeste <i.4m.l33t@yandex.ru>
Date
Aug 13, 2013, 17:44 UTC
Message-ID
<loom.20130813T193141-905@post.gmane.org>
In-Reply-To
<loom.20130415T220316-790@post.gmane.org>
Brice Lambson <bricelam <at> live.com> writes:
Show 6 quoted lines
> +1, this is a significant issue downstream in Git for Windows:
> 
> https://github.com/msysgit/git/issues/57
> 
> Effectively this renders .gitattributes useless for the scenario of 
> enforcing normalized line ending characters.
+100

Folks, the problem is still there, with the very latest Git built with MinGW on Windows. Having eol=native in gitattributes means *LF* EOLs on Windows/MinGW.

So, essentially, eol=native is completely broken. And this is the most useful option to put into gitattributes and share among those working on the project.

Currently, I have to put eol=crlf there, and that means that those working on Linux will end up with CRLF files in their working copies.

The link quoted above does contain an additional fix that resolves the problem.

Thanks,
  --Tvangeste
Previous: Brice LambsonNext: Junio C Hamano
Message 7 of 14 in “Add "core.eol" config variable”
  1. Add "core.eol" config variableEyvind Bernhardsen, Jun 4, 2010
  2. convert: The native line-ending is \r\n on MinGWJonathan Nieder, Sep 4, 2010
  3. Junio C HamanoSep 7, 2010
  4. Ramsay JonesSep 25, 2010
  5. Mr_and_Mrs_DNov 25, 2012
  6. Brice LambsonApr 15, 2013
  7. TvangesteAug 13, 2013
  8. Junio C HamanoAug 13, 2013
  9. Junio C HamanoApr 15, 2013
  10. Erik Faye-LundApr 15, 2013
  11. Junio C HamanoApr 15, 2013
  12. Erik Faye-LundApr 16, 2013
  13. Johannes SixtApr 16, 2013
  14. Junio C HamanoApr 16, 2013

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.