Meta/Count: do not add unnecessary @{now}

This commit is contained in:
Junio C Hamano
2026-07-26 07:24:07 -07:00
parent 2883c9d288
commit 00caf9dafb

8
Count
View File

@@ -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