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

Re: Question on textconv

From
Jeff King <peff@peff.net>
Date
Aug 6, 2026, 04:10 UTC
Message-ID
<20260806041052.GA1610686@coredump.intra.peff.net>
In-Reply-To
<020201dd24e3$89ad1220$9d073660$@nexbridge.com>
On Wed, Aug 05, 2026 at 10:05:52AM -0400, rsbecker@nexbridge.com wrote:
> Could we extend textconv to support %f (the original path) if specified in the
> textconv configuration? That would solve the ambiguity of what is being supplied.

In theory, yes. But there is one gotcha: there's a system for caching textconv output in git-notes, and it uses only the original blob id as the cache key.

So I'm not opposed to adding something like %f, as long as the patch to do so handles the caching problem (even if it just refuses to cache, that would be much better than returning possibly-wrong results).

That said, it sounds like you just want %f to work around a bug where the content is not provided. Probably fixing the bug is a better path forward. Looking at the working tree file to get the contents will not always be correct (e.g., if you're diffing an old tree).

-Peff
Previous: rsbecker@nexbridge.com
Message 7 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.