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

Re: osx autocrlf sanity?

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 10, 2020, 17:06 UTC
Message-ID
<xmqqmu5ag89w.fsf@gitster.c.googlers.com>
In-Reply-To
<20200610143404.5sgww2fmsouubloj@tb-raspi4>
Torsten Bögershausen <tboegi@web.de> writes:
Show 13 quoted lines
> On Tue, Jun 09, 2020 at 07:31:23PM -0400, Martin Langhoff wrote:
>> Hi Brian,
>>
>> good question! There is a .gitattributes file, all the files affected
>> have these attributes
>>
>> *.py     text diff=python
>
> That is the important information, that we need.
> Since there is a .gitattributes file, (wich is good),
> you can forget about core.autocrlf (at least for all python files).
> (That should be clear from the documentation of Git,
>  but it could be, that we can make things more clear).

So a "text" attribute trumps the settings of autocrlf? That makes it sound like ...

> There is only one way out of this dilemma:
> renormalize the line endings in the repo (and live a happier life ;-)
... there is another way out, which is to drop "text" attribute?
Previous: Martin Langhoff
Message 11 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.