From: Junio C Hamano Date: Sun, 26 Jul 2026 14:24:07 +0000 (-0700) Subject: Meta/Count: do not add unnecessary @{now} X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00caf9dafbbf1d67a66b2b1ac1fe4fadb200b8e0;p=thirdparty%2Fgit.git Meta/Count: do not add unnecessary @{now} --- diff --git a/Count b/Count 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