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

Re: why is tagger header optional?

From
Jeff King <peff@peff.net>
Date
Jan 19, 2010, 06:44 UTC
Message-ID
<20100119064453.GA3946@coredump.intra.peff.net>
In-Reply-To
<20100119060946.GA23212@spearce.org>
On Mon, Jan 18, 2010 at 10:09:46PM -0800, Shawn O. Pearce wrote:
> So why is it legal to omit the tagger header from a tag?
> 
> E.g. the Linux kernel tag v2.6.12 has no tagger header:

I think you just answered your own question. We must support tagger-less tags because they exist in important projects like the kernel. :)

> [...]
> Is there a version of Git floating around that doesn't create a
> tagger header when creating a signed tag?  WTF?

Everything prior to c818566 ([PATCH] Update tags to record who made them, 2005-07-14). So probably nothing that anybody is using now, but v2.6.12 was one of the first tags made.

> Looking at tag.c's parse_tag_buffer(), the variable sig_line seems
> to be expected to point at the "tagger " header (given its name),
> but its not actually validated as such.

Actually, that variable name predates the patch above, so I suspect "sig" meant "GPG signature". At any rate, as you can see, git doesn't verify it, and the code for "git show v2.6.12" in builtin-log.c:show_object handles the taggerless case as well. I don't think anything else actually looks at the tagger. verify-tag treats the signed data as opaque, and just shows the identity of the actual signer.

-Peff
Previous: Shawn O. Pearce
Message 6 of 6 in “why is tagger header optional?”
  1. Shawn O. PearceJan 19, 2010
  2. Junio C HamanoJan 19, 2010
  3. Shawn O. PearceJan 19, 2010
  4. Junio C HamanoJan 19, 2010
  5. Shawn O. PearceJan 19, 2010
  6. Jeff KingJan 19, 2010

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.