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

chronologically listed tags?

From
MDMichael Dressel <michaeltilodressel@t-online.de>
Date
Apr 24, 2007, 17:36 UTC
Message-ID
<Pine.LNX.4.64.0704241924070.4438@castor.milkiway.cos>
Hi,

I would like to list tags chronologically. I failed to find out how to do this using git or cogito directly. So I wrote the simplistic bash script below. Is there a way more direct way?

----- #!/bin/bash

export PAGER=''
git-tag -l |
while read line
do
    MYTIME=`git-show --pretty=raw $line | perl -ne 'print $1 if /committer\s+\w+\s+\S+\s+(\d+)/'`
    echo "$MYTIME $line"
done | sort | perl -ne 'use POSIX qw(strftime); if (  /(\d+) (\S+)/ ) {print strftime "%a %b %e %H:%M:%S %Y", localtime $1; print "\t\t$2\n" }'
------

Cheers, Michael

Next: Shawn O. Pearce
Message 1 of 3 in “chronologically listed tags?”
  1. Michael DresselApr 24, 2007
  2. Shawn O. PearceApr 24, 2007
  3. Michael DresselApr 24, 2007

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.