tj.git-extras/bin/git-count
2014-11-30 17:47:26 +05:30

9 lines
176 B
Bash
Executable file

#!/usr/bin/env bash
if test "$1" = "--all"; then
git shortlog -n -s $@ | awk '{print substr($0,index($0,$2)) " (" $1 ")"}'
echo
fi
echo total `git rev-list --count HEAD`