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

Re: Pretty date option for git tag?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
May 18, 2009, 16:02 UTC
Message-ID
<4A118696.80902@drmicha.warpmail.net>
In-Reply-To
<20090518151440.GA10536@andros.its.yale.edu>
dloewenherz@gmail.com venit, vidit, dixit 18.05.2009 17:14:
Show 20 quoted lines
> It is relatively hard to verify the date a tag was created unless it was been
> gpg/pgp-signed at the time of creation, no? I suppose that the Unix timestamp
> included in each tag file is useful for sorting, but it's not very easy for
> people to digest.  Additionally, we have our `log.date` config, why not use it
> here for some sort of option, like `--pretty=date` to make it easy to see when
> a tag was created?
> 
> I.e.
> 
> $ git tag -l --pretty=date
> ...
> Mon, 13 Apr 2009 00:06:25: v1.6.3-rc0
> Sat, 18 Apr 2009 22:11:00: v1.6.3-rc1 
> Sat, 25 Apr 2009 06:01:13: v1.6.3-rc2 
> Sun, 26 Apr 2009 23:43:48: v1.6.3-rc3 
> Sat, 02 May 2009 06:32:21: v1.6.3-rc4 
> Wed, 13 May 2009 05:30:37: v1.6.3.1
> 
> I don't know if this is feasible. Perhaps there already exists a feature for
> this that I'm unaware of. Or maybe this would be a waste of time.
You might want to experiment with
git log --tags --simplify-by-decoration --pretty="format:%ai %s"

which may show a few more commits than just the tags but comes close to the output you envisage.

Michael
Previous: dloewenherz@gmail.comNext: Linus Torvalds
Message 2 of 7 in “Pretty date option for git tag?”
  1. dloewenherz@gmail.comMay 18, 2009
  2. Michael J GruberMay 18, 2009
  3. Linus TorvaldsMay 18, 2009
  4. Jeff KingMay 18, 2009
  5. for-each-ref: fix segfault in copy_emailJeff King, May 18, 2009
  6. Thomas RastMay 18, 2009
  7. Jeff KingMay 18, 2009

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.