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

Re: [BUG] Git does not convert CRLF=>LF on files with \r not before \n

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 22, 2015, 17:42 UTC
Message-ID
<xmqq618of49u.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAFFOgCVkpweSukCW4La737P1uu1hqX8WKr9wF1cLV8ciPu8tuQ@mail.gmail.com>
Alexandre Garnier <zigarn@gmail.com> writes:
> Indeed, when changing the gitattributes for '* text', the replacement is OK.
OK.  Earlier I said:
>> But it would be a bug if the same thing happens when the user
>> explicitly tells us that the file has CRLF line endings, and I
>> suspect we have that bug, which may want to be corrected.

but you are saying that my suspicion is incorrect and we do not have such a bug.

Thanks for digging further.
Previous: Alexandre Garnier
Message 5 of 5 in “[BUG] Git does not convert CRLF=>LF on files with \r not before \n”
  1. Alexandre GarnierApr 21, 2015
  2. Junio C HamanoApr 21, 2015
  3. Torsten BögershausenApr 21, 2015
  4. Alexandre GarnierApr 22, 2015
  5. Junio C HamanoApr 22, 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.