From fae4c29870eb0d80763acd8734176b3260a08932 Mon Sep 17 00:00:00 2001 From: Damien Tardy-Panis Date: Mon, 12 Sep 2016 12:25:59 +0200 Subject: [PATCH] count: remove usage of extra arguments for detailed display When viewing detailed count information through the usage of the --all argument, extra arguments would be also passed to the git shortlog command (probably to be used as revisions list) This behaviour was introduced in commit 7a60cd1. Unfortunately the --all argument itself is passed along and results in the counts of all refs to be displayed This commit removed the usage of extra arguments and thus only display the counts of the current branch --- bin/git-count | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-count b/bin/git-count index 5845ddd53..9ee91c89c 100755 --- a/bin/git-count +++ b/bin/git-count @@ -1,7 +1,7 @@ #!/usr/bin/env bash if test "$1" = "--all"; then - git shortlog -n -s $@ | awk '{print substr($0,index($0,$2)) " (" $1 ")"}' + git shortlog -n -s | awk '{print substr($0,index($0,$2)) " (" $1 ")"}' echo fi