Created
July 6, 2015 17:54
-
-
Save pauladam/a2633b79be3c69628aff to your computer and use it in GitHub Desktop.
git-reviewer
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
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "Usage: git reviewer filename" | |
exit | |
fi | |
git blame $1 | cut -d "(" -f 2 | ruby -ne 'puts $_.split(/\d{4}/).first' | sort | uniq -c | sort -n | tail -r | head -n 1 | cut -d ' ' -f 3- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Drop this in somewhere in $PATH and make sure its executable