]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Count: allow the command line to specify the latest tag
authorJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 22:24:21 +0000 (15:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 22:24:21 +0000 (15:24 -0700)
Count

diff --git a/Count b/Count
index a01e3093bbd7b563ac02c70dc1f181720c0b87f4..39fd77176d7022a7297b9a3c6891e4446cce7c49 100755 (executable)
--- 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}" \