Skip to content

Instantly share code, notes, and snippets.

@briandoll
Created January 20, 2010 04:58
Show Gist options
  • Save briandoll/281623 to your computer and use it in GitHub Desktop.
Save briandoll/281623 to your computer and use it in GitHub Desktop.
#!/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