@leroysheep / Socializer / commits / 8eef5ae746

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
+13
new file mode 100755 index 0000000000..5a73cade66 --- /dev/null +++ b/Count @@ -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