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

Re: Should Git Tag trailer formatting work?

From
Jeff King <peff@peff.net>
Date
Sep 6, 2024, 21:50 UTC
Message-ID
<20240906215054.GA1149961@coredump.intra.peff.net>
In-Reply-To
<249C7637-0032-4D53-A8A0-83935764334E@alchemists.io>
On Fri, Sep 06, 2024 at 09:22:33AM -0600, Brooke Kuhlmann wrote:
> Yeah, I can render trailer information when using your examples but
> *only* if I disable signing my tags. Here's what my global Git
> configuration looks like:

Ah, OK, that makes sense. We have to parse the trailers from the end, and the parser is not prepared to handle tags' inline signatures (in commits, the signatures are embedded in headers, so the trailer parser doesn't have to worry about them).

I have a rough patch, but it requires making an extra copy of the tag buffer, since the trailer API needs a NUL-terminated string. I'll see if I can clean that up to let us parse it in place, and should send something out in a day or so.

-Peff
Previous: Brooke KuhlmannNext: Brooke Kuhlmann
Message 4 of 5 in “Should Git Tag trailer formatting work?”
  1. Brooke KuhlmannSep 5, 2024
  2. Jeff KingSep 6, 2024
  3. Brooke KuhlmannSep 6, 2024
  4. Jeff KingSep 6, 2024
  5. Brooke KuhlmannSep 6, 2024

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.