From 8eef5ae746709cebca411cb2286a522c38918c0b Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 3 Aug 2022 16:57:50 -0700 Subject: [PATCH] Meta/Count: count the commits on integration branches --- Count | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Count 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