Meta/Count: count the commits on integration branches

This commit is contained in:
Junio C Hamano
2022-08-03 16:57:50 -07:00
parent a5d8d7256a
commit 8eef5ae746

13
Count Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
: ${asof=${1-now}}
lasttag=$(
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