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

[RFE] Teach git textconv to support %f

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Jun 8, 2021, 15:38 UTC
Message-ID
<01f901d75c7c$5a8bcb10$0fa36130$@nexbridge.com>

The filter structure provides a mechanism for providing the working directory's file name path to a filter using a %f argument. This request is to teach the textconv mechanism to support the same capability.

The use case comes from a complex content renderer that needs to know what the original file name is, so as to be able to find additional content, by name, that describes the file (base name+different extension).

If this is considered a good idea, I would be happy to implement this but need a pointer or two of where to look in the code to make it happen.

Thanks, Randall

-- Brief whoami:
 NonStop developer since approximately 211288444200000000
 UNIX developer since approximately 421664400
-- In my real life, I talk too much.
Next: Junio C Hamano
Message 1 of 4 in “[RFE] Teach git textconv to support %f”
  1. Randall S. BeckerJun 8, 2021
  2. Junio C HamanoJun 9, 2021
  3. Jeff KingJun 9, 2021
  4. Randall S. BeckerJun 9, 2021

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.