tj.git-extras/bin/git-contrib
2010-08-23 10:11:06 -07:00

10 lines
268 B
Bash
Executable file

#!/bin/sh
user=$1
if test -z "$user"; then
echo "user name required." && exit 1
else
count=`git log --oneline --pretty="format: %an" | grep "$user" | wc -l`
test $count -eq 0 && echo "$user did not contribute." && exit 1
git shortlog | grep $user -A $count
fi