Skip to content

Commit

Permalink
count: remove usage of extra arguments for detailed display
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tardypad committed Sep 12, 2016
1 parent 241069d commit fae4c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-count
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit fae4c29

Please sign in to comment.