osx autocrlf sanity?
- From
Martin Langhoff <martin.langhoff@gmail.com>
- Date
- Jun 9, 2020, 19:52 UTC
- Message-ID
- <CACPiFCJKvnDL9Xj1Xs0RCvuhymjDz4N0hT42dNtBQxp+TLiPaw@mail.gmail.com>
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.
cheers,
martin
-- martin.langhoff@gmail.com - ask interesting questions ~ http://linkedin.com/in/martinlanghoff - don't be distracted ~ http://github.com/martin-langhoff by shiny stuff