Skip to content

Instantly share code, notes, and snippets.

@jbranchaud
Created November 9, 2011 12:54
Show Gist options
  • Save jbranchaud/1351339 to your computer and use it in GitHub Desktop.
Save jbranchaud/1351339 to your computer and use it in GitHub Desktop.
Counts the number of commits a given author has made in the SVN repository
#!/bin/bash
# This script must be run from within the working copy of the repository
# Put the author in a variable
author=$1
# Count the number of commits for a given author
svn log --quiet | awk '/^r/' | awk "/$author/" | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment