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

Re: Question on textconv

From
D. Ben Knoble <ben.knoble@gmail.com>
Date
Aug 5, 2026, 11:36 UTC
Message-ID
<CALnO6CAhVzptUYpoHU93y5Sho3cPJgVbT81bb0ChugNCE9zsTw@mail.gmail.com>
In-Reply-To
<20260805045026.GA972736@coredump.intra.peff.net>
On Wed, Aug 5, 2026 at 12:50 AM Jeff King <peff@peff.net> wrote:
Show 8 quoted lines
>
> On Tue, Aug 04, 2026 at 02:44:22PM -0400, rsbecker@nexbridge.com wrote:
>
> > The supplied file going to the textconv program looks like
> > /tmp/git-blob-GFtIhK/simple
> > and is always empty regardless of the file contents.
>
> I can't reproduce the problem here, even for files with embedded NULs.
Yeah, same:
    dd if=/dev/zero of=file count=1
    echo 'file diff=debug' >.gitattributes
    git config diff.debug.textconv 'echo >&2 "got $*"; xxd'

shows (with "git add --intent-to-add file; git diff file") the xxd dump of zeros from the working tree. Then

    git commit file -mwip
    dd if=/dev/zero of=file count=2
    git diff file

shows a diff between a temp file and the working tree (but still correctly showing the new block of zeros).

Previous: Jeff KingNext: rsbecker@nexbridge.com
Message 5 of 7 in “Question on textconv”
  1. rsbecker@nexbridge.comAug 4, 2026
  2. D. Ben KnobleAug 4, 2026
  3. rsbecker@nexbridge.comAug 4, 2026
  4. Jeff KingAug 5, 2026
  5. D. Ben KnobleAug 5, 2026
  6. rsbecker@nexbridge.comAug 5, 2026
  7. Jeff KingAug 6, 2026

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.