]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Count: make lasttag truly customizable
authorJunio C Hamano <gitster@pobox.com>
Mon, 13 May 2024 23:28:20 +0000 (16:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 May 2024 23:28:20 +0000 (16:28 -0700)
Count

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