Created
January 20, 2010 04:58
-
-
Save briandoll/281623 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# commit-derby | |
# Display a list of committers with the number of commits they have made in the last 30 days | |
# | |
COMMITTERS=`git log --format='%an' --since='30 days ago' | sort | uniq` | |
echo "In the last month, we've seen:" | |
for COMMITTER in ${COMMITTERS}; do | |
COMMITS=`git log --format='%an' --since='30 days ago' | sort | grep ${COMMITTER} | wc -l` | |
LEN=${#COMMITTER} | |
echo "${COMMITS// /} commits by ${COMMITTER}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment