Raw
1 #!/bin/sh
2
3 : ${asof=${1+"@{$1}"}}
4
5 : ${lasttag=${2-$(
6 git tag --list 'v*.0' --sort=version:tag | tail -n 1
7 )}}
8
9 for r in "$lasttag..master$asof" \
10 "master$asof..next$asof" \
11 "master$asof..seen$asof"
12 do
13 echo "$r $(git rev-list --count --no-merges $r)"
14 done