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

Re: [PATCH] treat any file with NUL as binary

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 16, 2008, 01:16 UTC
Message-ID
<7vve5ubmdm.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080116011321.GD13984@dpotapov.dyndns.org>
Dmitry Potapov <dpotapov@gmail.com> writes:
> Then it seems to me, Linus sounded more in favor of that change than
> against it. His main argument was against 'diff' heuristic, which he
> felt was not strict enough for CRLF translation: "It's *much* better
> to miss some CRLF translation than to do too much of it."

Yeah, you found the right one, and I agreed with the argument back then, and I agree with it now. I think NUL heuristics is a good one and obviously it makes it tighter than what diff uses, which should be what we are aiming for in this thread.

Previous: Dmitry PotapovNext: Junio C Hamano
Message 5 of 7 in “treat any file with NUL as binary”
  1. treat any file with NUL as binaryDmitry Potapov, Jan 15, 2008
  2. Steffen ProhaskaJan 15, 2008
  3. Junio C HamanoJan 15, 2008
  4. Dmitry PotapovJan 16, 2008
  5. Junio C HamanoJan 16, 2008
  6. Junio C HamanoJan 16, 2008
  7. treat any file with NUL as binaryDmitry Potapov, Jan 16, 2008

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.