Permalink
Browse files

Update the fortag script to sort the tags by date

  • Loading branch information...
hroncok committed Jul 29, 2014
1 parent 7fae6fe commit 5bea901194c1dc55939d81931507f2b3885a7268
Showing with 2 additions and 2 deletions.
  1. +2 −2 fortag.sh
View
@@ -1,9 +1,9 @@
#!/bin/bash
lasttag=''
total=''
for tag in `git tag`; do
for tag in `git for-each-ref --sort=committerdate --format='%(refname)' refs/tags`; do
if [[ x$lasttag != x ]]; then
e="${tag#v}: "
e="${tag#refs/tags/v}: "
e="$e`git --no-pager log -1 --format=%ai $tag`\n\n"
e="$e`git --no-pager log --pretty=\"format: * %s\" $lasttag..$tag`\n\n"
total="$e$total"

0 comments on commit 5bea901

Please sign in to comment.