mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
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
9 lines
173 B
Bash
Executable file
9 lines
173 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if test "$1" = "--all"; then
|
|
git shortlog -n -s | awk '{print substr($0,index($0,$2)) " (" $1 ")"}'
|
|
echo
|
|
fi
|
|
|
|
echo total `git rev-list --count HEAD`
|