From: Junio C Hamano Date: Mon, 13 May 2024 23:28:20 +0000 (-0700) Subject: Meta/Count: make lasttag truly customizable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b278fb7574e7701707e33bfc40342439373d9a2;p=thirdparty%2Fgit.git Meta/Count: make lasttag truly customizable --- diff --git a/Count b/Count index 5a73cade66..a01e3093bb 100755 --- a/Count +++ b/Count @@ -2,9 +2,10 @@ : ${asof=${1-now}} -lasttag=$( +: ${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}"