chronologically listed tags?

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

chronologically listed tags?

From: Michael Dressel <hidden>
Date: 2016-06-15 22:43:06

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

Re: chronologically listed tags?

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:43:06

Michael Dressel [off-list ref] wrote:
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?
for-each-ref is your friend:

	git for-each-ref --sort='taggerdate' refs/tags

-- 
Shawn.

Re: chronologically listed tags?

From: Michael Dressel <hidden>
Date: 2016-06-15 22:43:06


On Tue, 24 Apr 2007, Shawn O. Pearce wrote:
Michael Dressel [off-list ref] wrote:
quoted
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?
for-each-ref is your friend:

	git for-each-ref --sort='taggerdate' refs/tags

-- 
Shawn.
Hi Shawn,

great thanx.

Michael
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help