mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Passing args to git shortlog
This commit is contained in:
parent
bb721be895
commit
7a60cd1710
|
|
@ -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`
|
||||
Loading…
Reference in a new issue