Passing args to git shortlog

This commit is contained in:
Tj Holowaychuk 2010-08-04 08:56:54 -07:00
parent bb721be895
commit 7a60cd1710

View file

@ -1,7 +1,9 @@
#!/usr/bin/env sh
if test "$1" = "--all"; then
git shortlog | grep "):" | sed 's|:||'
arg=$1; shift
if test "$arg" = "--all"; then
git shortlog -n $@ | grep "):" | sed 's|:||'
echo
fi
echo total `git log --oneline | wc -l`