Meta/Count: allow the command line to specify the latest tag
Junio C Hamano committed
Jul 1, 2025 at 15:24 UTC
ce57fbc53aa01c62402f4235d46c70cee70a7bdd
1 file changed
+2
-2
Count
+2
-2
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}" \