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

Re: osx autocrlf sanity?

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jun 9, 2020, 23:13 UTC
Message-ID
<20200609231336.GQ6569@camp.crustytoothpaste.net>
In-Reply-To
<CACPiFCJKvnDL9Xj1Xs0RCvuhymjDz4N0hT42dNtBQxp+TLiPaw@mail.gmail.com>
On 2020-06-09 at 19:52:42, Martin Langhoff wrote:
Show 21 quoted lines
> Hi git list,
> 
> long time no see! I am here to ask for a sanity check. I'm on OSX.
> Checking out a repository that has an un-controlled mix of line
> endings. Mostly linux-style, but some Windows CRLF endings.
> 
> A few tests.
>  - I set core.autocrlf=input globally --> a fresh clone doesn't have a
> clean status files look modified right after a clone)
>  - set core.autocrlf=false globally --> a fresh clone doesn't have a
> clean status
>  - set core.autocrlf=true globally --> a fresh clone doesn't have a clean status
> 
> This is git v2.23.0 from Homebrew.
> 
> Am I doing something wrong? Can git work sanely on a mixed endings
> repo without having to fix the world first?
> 
> ... I do strive to fix the world (and this small repository), as we
> all do, but it should not be a preconditions before git behaves
> sanely.

Does this repository have a .gitattributes file and if so, is there any correlation between the patterns in that file and the modified files?

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Martin LanghoffNext: Martin Langhoff
Message 2 of 11 in “osx autocrlf sanity?”
  1. Martin LanghoffJun 9, 2020
  2. brian m. carlsonJun 9, 2020
  3. Martin LanghoffJun 9, 2020
  4. brian m. carlsonJun 10, 2020
  5. Martin LanghoffJun 10, 2020
  6. Randall S. BeckerJun 10, 2020
  7. Martin LanghoffJun 10, 2020
  8. brian m. carlsonJun 10, 2020
  9. Torsten BögershausenJun 10, 2020
  10. Martin LanghoffJun 10, 2020
  11. Junio C HamanoJun 10, 2020

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.