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
@@ -1,14 +1,14 @@
1
#!/bin/sh
2
3
-: ${asof=${1-now}}
3
+: ${asof=${1+"@{$1}"}}
4
5
: ${lasttag=${2-$(
6
git tag --list 'v*.0' --sort=version:tag | tail -n 1
7
)}}
8
9
-for r in "$lasttag..master@{$asof}" \
10
- "master@{$asof}..next@{$asof}" \
11
- "master@{$asof}..seen@{$asof}"
9
+for r in "$lasttag..master$asof" \
10
+ "master$asof..next$asof" \
11
+ "master$asof..seen$asof"
12
do
13
echo "$r $(git rev-list --count --no-merges $r)"
14
done