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

Re: [PATCH] introduce config core.binaryCheckFirstBytes for xdiff-interface

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 7, 2007, 21:19 UTC
Message-ID
<7vodge2mxm.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20070907191421.5526.qmail@f74fa18bc10c8f.315fe32.mid.smarden.org>
Gerrit Pape <pape@smarden.org> writes:
> xdiff-interface uses a hardcoded value of 8000 bytes to check from
> the top of data whether to handle it as binary content.  If a NULL
> character appears after the first 8000 bytes, git won't notice,

If the user has to set this to suit git better for a particular project, I think the same effort is better spent on setting up the attribute for that file so that git does not have to guess the type, no?

Previous: Gerrit Pape
Message 2 of 2 in “introduce config core.binaryCheckFirstBytes for xdiff-interface”
  1. introduce config core.binaryCheckFirstBytes for xdiff-interfaceGerrit Pape, Sep 7, 2007
  2. Junio C HamanoSep 7, 2007

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.