You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
274 B
10 lines
274 B
#!/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
|