tj.git-extras/bin/git-count
2010-08-04 08:56:54 -07:00

9 lines
160 B
Bash
Executable file

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