From: Junio C Hamano Date: Tue, 1 Jul 2025 22:24:21 +0000 (-0700) Subject: Meta/Count: allow the command line to specify the latest tag X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce57fbc53aa01c62402f4235d46c70cee70a7bdd;p=thirdparty%2Fgit.git Meta/Count: allow the command line to specify the latest tag --- diff --git a/Count b/Count index a01e3093bb..39fd77176d 100755 --- a/Count +++ b/Count @@ -2,9 +2,9 @@ : ${asof=${1-now}} -: ${lasttag=$( +: ${lasttag=${2-$( git tag --list 'v*.0' --sort=version:tag | tail -n 1 - )} + )}} for r in "$lasttag..master@{$asof}" \ "master@{$asof}..next@{$asof}" \