Skip to content

Commit

Permalink
Passing args to git shortlog
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 4, 2010
1 parent bb721be commit 7a60cd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/git-count
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit 7a60cd1

Please sign in to comment.