chronologically listed tags?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]