Meta/Count: count the commits on integration branches

Junio C Hamano committed Aug 3, 2022 at 16:57 UTC 8eef5ae746709cebca411cb2286a522c38918c0b
1 file changed +13
Count new
+13
@@ -0,0 +1,13 @@
1 +#!/bin/sh
2 +
3 +: ${asof=${1-now}}
4 +
5 +lasttag=$(
6 + git tag --list 'v*.0' --sort=version:tag | tail -n 1
7 +) &&
8 +for r in "$lasttag..master@{$asof}" \
9 + "master@{$asof}..next@{$asof}" \
10 + "master@{$asof}..seen@{$asof}"
11 +do
12 + echo "$r $(git rev-list --count --no-merges $r)"
13 +done