mirror of
https://github.com/git/git.git
synced 2026-08-08 09:02:01 +00:00
Meta/Count: do not add unnecessary @{now}
This commit is contained in:
8
Count
8
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
|
||||
|
||||
Reference in New Issue
Block a user