Meta/Count: count the commits on integration branches

todo
Junio C Hamano 2022-08-03 16:57:50 -07:00
parent a5d8d7256a
commit 8eef5ae746
1 changed files with 13 additions and 0 deletions

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