Re: Question on textconv
"D. Ben Knoble" <[email protected]> Wed, 5 Aug 2026 07:36:15 -0400
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <CALnO6CAhVzptUYpoHU93y5Sho3cPJgVbT81bb0ChugNCE9zsTw@mail.gmail.com> |
On Wed, Aug 5, 2026 at 12:50 AM Jeff King <[email protected]> wrote: > > On Tue, Aug 04, 2026 at 02:44:22PM -0400, [email protected] 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).