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

Re: osx autocrlf sanity?

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Jun 10, 2020, 14:19 UTC
Message-ID
<CACPiFCLEgaCiE_LjdvQLhpFXU2XEZ1gpFEDrMkdwF+p=qPJ3Eg@mail.gmail.com>
In-Reply-To
<027001d63f2f$622f2d00$268d8700$@nexbridge.com>
From my original post -
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

... I was an early contributor to git, so I am hopefully not too naive about the basics. Of course, I sometimes make a boneheaded mistake.

cheers,
m

On Wed, Jun 10, 2020 at 9:59 AM Randall S. Becker <rsbecker@nexbridge.com> wrote:

Show 40 quoted lines
>
> On June 10, 2020 9:55 AM, Martin Langhoff wrote:
> > To: brian m. carlson <sandals@crustytoothpaste.net>; Martin Langhoff
> > <martin.langhoff@gmail.com>; Git Mailing List <git@vger.kernel.org>
> > Subject: Re: osx autocrlf sanity?
> >
> > On Tue, Jun 9, 2020 at 8:04 PM brian m. carlson
> > <sandals@crustytoothpaste.net> wrote:
> > > On 2020-06-09 at 23:31:23, Martin Langhoff wrote:
> > > > good question! There is a .gitattributes file, all the files
> > > > affected have these attributes
> > > >
> > > > *.py     text diff=python
> > >
> > > By default, Git will check out files with the text attribute with the
> > > native line ending, and it will check them in with LF endings.  That
> > > can be controlled by core.eol and core.autocrlf
> >
> > Why is core.autocrlf false not working for me?
> >
> > I want to work on a repo that has a mix of newlines. I'd like git to completely
> > ignore them. Treat all files as a bag'o'bytes.
> >
> > Assume I am running git rebase over commits that have .gitattributes, so I
> > can't "just remove it".
>
> We use core.autocrlf=input on all our platforms for source files, including OSX.
>
> Does that work for you?
>
> Regards,
> Randall
>
> -- Brief whoami:
>  NonStop developer since approximately 211288444200000000
>  UNIX developer since approximately 421664400
> -- In my real life, I talk too much.
>
>
>
-- 
 martin.langhoff@gmail.com
 - ask interesting questions  ~  http://linkedin.com/in/martinlanghoff
 - don't be distracted        ~  http://github.com/martin-langhoff
   by shiny stuff
Previous: Randall S. BeckerNext: brian m. carlson
Message 7 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.