NMEA: TODO added.
[marnav.git] / bin / print-changelog
blob60af6b2b606877336150c9a5ad15a900c824477f
1 #!/bin/sh
3 tag_last=`git tag | grep -E "[0-9]+\.[0-9]+\.[0-9]+" | tail -n 1`
5 if [ $# -eq 0 ] ; then
6 echo ""
7 echo "Commits between tags: ${tag_last} .. HEAD"
8 echo ""
9 git log ${tag_last}.. --pretty=format:"%s" | sort
10 exit 0
13 TEMP=`getopt -o t -- "$@"`
14 eval set -- "${TEMP}"
15 while true ; do
16 case "$1" in
17 -t) # commit log between last two tags
18 echo ""
19 echo "Commits between tags: ${tag_second_last} .. ${tag_last}"
20 echo ""
21 tag_second_last=`git tag | grep -E "[0-9]+\.[0-9]+\.[0-9]+" | tail -n 2 | head -n 1`
22 git log ${tag_second_last}..${tag_last} --pretty=format:"%s" | sort
23 shift
26 *) break
28 esac
29 done