mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
contrib: refactor, and conform to git
This commit is contained in:
parent
371dcdff13
commit
4b4276e3fc
|
|
@ -4,6 +4,4 @@ user="$*"
|
|||
|
||||
test -z "$user" && echo "user name required." 1>&2 && exit 1
|
||||
|
||||
count=`git log --oneline --pretty="format: %an" | grep -- "$user" | wc -l`
|
||||
test $count -eq 0 && echo "$user did not contribute." && exit 1
|
||||
git shortlog | grep -A $count -- "$user ("
|
||||
git shortlog --author="$user"
|
||||
|
|
|
|||
Loading…
Reference in a new issue