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