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

How to show an annotated tag's timestamp?

From
DSDirk Süsserott <newsletter@dirk.my1.cc>
Date
Aug 12, 2008, 19:40 UTC
Message-ID
<48A1E739.3010803@dirk.my1.cc>

I'd like to display *when* a certain annotated tag was created, i.e. its timestamp. I know two ways but am looking for a third one:

Gitk: When clicking the yellow tag item (called 'testtag'
in my case) it says:
-------------
object 9a04a26d3e5ea09be32934f50020d0286ebe7325
type commit
tag testtag
tagger <tagger's name> <tagger's email-address> 1218568300 +0200
-------------
Well, I can convert 1218568300 into some human readable string,
but that's not convenient.
So I tried 'git show testtag'. It says:
-------------
(*) tag testtag
(*) Tagger: <tagger's name> <tagger's email-address>
(*) Date:   Tue Aug 12 21:17:17 2008 +0200
(*)
(*) testtag
commit 0a62b3380d21bf65270490619da4a2efd6d2ca7a
Author: ...
Date:   Thu Apr 24 18:49:38 2008 +0200
[...]
-------------

... followed by the whole commit message and diff of the commit that's pointed to by the tag. That's too much for my purpose.

Is there a way to output only when and by whom the tag was created (incl. the tag's messsage), i.e. the lines above marked with (*)?

AHA,
   Dirk
Next: Mikael Magnusson
Message 1 of 4 in “How to show an annotated tag's timestamp?”
  1. Dirk SüsserottAug 12, 2008
  2. Mikael MagnussonAug 12, 2008
  3. Marcus GriepAug 12, 2008
  4. Alex RiesenAug 14, 2008

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.