File: fortag.sh

package info (click to toggle)
admesh 0.98.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: ansic: 2,945; sh: 284; makefile: 54; xml: 18
file content (13 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
lasttag=''
total=''
for tag in `git for-each-ref --sort=committerdate --format='%(refname)' refs/tags`; do
  if [[ x$lasttag != x ]]; then
    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"
  fi
  lasttag=$tag
done
echo -en "$total"