{"thread":{"id":"7820","subject":"chronologically listed tags?","startedAt":"2007-04-24T17:36:28Z","lastAt":"2007-04-24T19:59:00Z","messageCount":3,"participants":["Michael Dressel","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"40354","messageId":"Pine.LNX.4.64.0704241924070.4438@castor.milkiway.cos","threadId":"7820","inReplyTo":null,"subject":"chronologically listed tags?","fromName":"Michael Dressel","fromEmail":"michaeltilodressel@t-online.de","sentAt":"2007-04-24T17:36:28Z","receivedAt":"2007-04-24T17:36:28Z","isPatch":false,"sender":{"key":"michaeltilodressel@t-online.de","avatar":null},"body":"Hi,\n\nI would like to list tags chronologically. I failed to find out how to do \nthis using git or cogito directly. So I wrote the simplistic bash script \nbelow. Is there a way more direct way?\n\n\n-----\n#!/bin/bash\n\nexport PAGER=''\n\ngit-tag -l |\nwhile read line\ndo\n    MYTIME=`git-show --pretty=raw $line | perl -ne 'print $1 if /committer\\s+\\w+\\s+\\S+\\s+(\\d+)/'`\n    echo \"$MYTIME $line\"\ndone | 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\" }'\n\n------\n\nCheers,\nMichael\n"},{"id":"40355","messageId":"20070424174217.GB5942@spearce.org","threadId":"7820","inReplyTo":"Pine.LNX.4.64.0704241924070.4438@castor.milkiway.cos","subject":"Re: chronologically listed tags?","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-04-24T17:42:17Z","receivedAt":"2007-04-24T17:42:17Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Michael Dressel <MichaelTiloDressel@t-online.de> wrote:\n> I would like to list tags chronologically. I failed to find out how to do \n> this using git or cogito directly. So I wrote the simplistic bash script \n> below. Is there a way more direct way?\n\nfor-each-ref is your friend:\n\n\tgit for-each-ref --sort='taggerdate' refs/tags\n\n-- \nShawn.\n"},{"id":"40364","messageId":"Pine.LNX.4.64.0704242158090.4291@castor.milkiway.cos","threadId":"7820","inReplyTo":"20070424174217.GB5942@spearce.org","subject":"Re: chronologically listed tags?","fromName":"Michael Dressel","fromEmail":"michaeltilodressel@t-online.de","sentAt":"2007-04-24T19:59:00Z","receivedAt":"2007-04-24T19:59:00Z","isPatch":false,"sender":{"key":"michaeltilodressel@t-online.de","avatar":null},"body":"\n\nOn Tue, 24 Apr 2007, Shawn O. Pearce wrote:\n\n> Michael Dressel <MichaelTiloDressel@t-online.de> wrote:\n> > I would like to list tags chronologically. I failed to find out how to do \n> > this using git or cogito directly. So I wrote the simplistic bash script \n> > below. Is there a way more direct way?\n> \n> for-each-ref is your friend:\n> \n> \tgit for-each-ref --sort='taggerdate' refs/tags\n> \n> -- \n> Shawn.\n> \n\nHi Shawn,\n\ngreat thanx.\n\nMichael\n"}]}