Meta/Count: make lasttag truly customizable
Junio C Hamano committed
May 13, 2024 at 16:28 UTC
4b278fb7574e7701707e33bfc40342439373d9a2
1 file changed
+3
-2
Count
+3
-2
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}"