From: Junio C Hamano Date: Wed, 3 Aug 2022 23:57:50 +0000 (-0700) Subject: Meta/Count: count the commits on integration branches X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eef5ae746709cebca411cb2286a522c38918c0b;p=thirdparty%2Fgit.git Meta/Count: count the commits on integration branches --- diff --git a/Count b/Count 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