summaryrefslogtreecommitdiff
path: root/Count
blob: 5a6778f88718ec003fc951921f1eaddb670d43b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

: ${asof=${1+"@{$1}"}}

: ${lasttag=${2-$(
	git tag --list 'v*.0' --sort=version:tag | tail -n 1
  )}}

for r in "$lasttag..master$asof" \
	"master$asof..next$asof" \
	"master$asof..seen$asof"
do
	echo "$r	$(git rev-list --count --no-merges $r)"
done