Meta/Count: do not add unnecessary @{now}
Junio C Hamano committed
Jul 26, 2026 at 07:24 UTC
00caf9dafbbf1d67a66b2b1ac1fe4fadb200b8e0
1 file changed
+4
-4
Count
+4
-4
index 39fd77176d..5a6778f887 100755
--- 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