mirror of
https://github.com/git/git.git
synced 2026-01-16 21:59:45 +00:00
Meta/Count: count the commits on integration branches
This commit is contained in:
13
Count
Executable file
13
Count
Executable 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
|
||||
Reference in New Issue
Block a user