tj.git-extras/bin/git-count
2010-09-07 17:12:54 +02:00

9 lines
179 B
Bash
Executable file

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