File: git-contrib

package info (click to toggle)
git-extras 1.7.0-1.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 696 kB
  • sloc: sh: 381; makefile: 52
file content (9 lines) | stat: -rwxr-xr-x 262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/bin/bash

user="$*"

test -z "$user" && echo "user name required." 1>&2 && exit 1

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