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

Re: Re: The different EOL behavior between libgit2-based software and official Git

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 23, 2014, 17:29 UTC
Message-ID
<xmqqionrcz6h.fsf@gitster.dls.corp.google.com>
In-Reply-To
<53A67BE1.4060903@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
> No, it hadn't, under my Linux box.
> (And I had a .gittatributes file on the Mac OS box, which I forgot about.
OK, that explains the difference; thanks for double-checking.
> Files with mixed LF CRLF in the repo are not changed by Git, when the checkout out
> or checked in, unless the .gitattributes say that the file is text.

Hmph, I would have thought, after reading the "Does anybody do that crazy stuff" comment in convert.c, that we refrain from attempting to convert a file with a mixed mess, even if the file is marked as text, because it is unclear what it means to have both LF and CRLF in a file that is text. Is "A\rB\nC\r\n" a line terminated with a CRLF that happens to have a lone CR and then LF in between?

You may be looking at a bug in a corner case that is so irrelevant that nobody has even noticed, let alone attempted to fix.

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Previous: Torsten BögershausenNext: Yue Lin Ho
Message 9 of 10 in “The different EOL behavior between libgit2-based software and official Git”
  1. Yue Lin HoJun 19, 2014
  2. Torsten BögershausenJun 19, 2014
  3. Yue Lin HoJun 19, 2014
  4. Torsten BögershausenJun 20, 2014
  5. Yue Lin HoJun 20, 2014
  6. Torsten BögershausenJun 20, 2014
  7. Junio C HamanoJun 20, 2014
  8. Torsten BögershausenJun 22, 2014
  9. Junio C HamanoJun 23, 2014
  10. Yue Lin HoJun 20, 2014

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.