]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Count: do not add unnecessary @{now}
authorJunio C Hamano <gitster@pobox.com>
Sun, 26 Jul 2026 14:24:07 +0000 (07:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 26 Jul 2026 14:24:07 +0000 (07:24 -0700)
Count

diff --git a/Count b/Count
index 39fd77176d7022a7297b9a3c6891e4446cce7c49..5a6778f88718ec003fc951921f1eaddb670d43b8 100755 (executable)
--- a/Count
+++ b/Count
@@ -1,14 +1,14 @@
 #!/bin/sh
 
-: ${asof=${1-now}}
+: ${asof=${1+"@{$1}"}}
 
 : ${lasttag=${2-$(
        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}"
+for r in "$lasttag..master$asof" \
+       "master$asof..next$asof" \
+       "master$asof..seen$asof"
 do
        echo "$r        $(git rev-list --count --no-merges $r)"
 done