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

Re: [PATCH 0/2] submodule add + autocrlf + safecrlf

From
Brad King <brad.king@kitware.com>
Date
Jun 20, 2012, 18:09 UTC
Message-ID
<4FE211C8.3080007@kitware.com>
In-Reply-To
<7vipelx49g.fsf@alter.siamese.dyndns.org>
On 06/20/2012 01:49 PM, Junio C Hamano wrote:
Show 5 quoted lines
> I have a suspicion that "git config" should be taught about this
> kind of thing instead.
> 
> Shoudn't your .git/config file that is outside the revision control
> also end with CRLF if your platform and project prefer CRLF over LF?

That would be reasonable, but is beyond the scope I'm willing to tackle myself.

I don't actually have a project like this so I have no strong opinion on this issue. I discovered the problem by accident and have already worked around it in the obscure case it matters for me.

Perhaps only the first patch in the series is worth inclusion. It can become the beginning of a series if someone wants to address handling crlf in config files. Note that in the case I discovered this the crlf configuration was in ~/.gitconfig so the project knew nothing about it and had no .gitattributes.

-Brad
Previous: Junio C HamanoNext: Junio C Hamano
Message 11 of 12 in “submodule add + autocrlf + safecrlf”
  1. 0/2 submodule add + autocrlf + safecrlfBrad King, Jun 20, 2012
  2. 1/2 submodule: Demonstrate failure to add with auto/safecrlfBrad King, Jun 20, 2012
  3. 2/2 submodule: Tolerate auto/safecrlf when adding .gitmodulesBrad King, Jun 20, 2012
  4. Jens LehmannJun 20, 2012
  5. Brad KingJun 20, 2012
  6. Jens LehmannJun 20, 2012
  7. Jeff KingJun 20, 2012
  8. Junio C HamanoJun 20, 2012
  9. Jens LehmannJun 21, 2012
  10. Junio C HamanoJun 20, 2012
  11. Brad KingJun 20, 2012
  12. Junio C HamanoJun 20, 2012

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.