Skip to content

Instantly share code, notes, and snippets.

@pauladam
Created July 6, 2015 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pauladam/a2633b79be3c69628aff to your computer and use it in GitHub Desktop.
Save pauladam/a2633b79be3c69628aff to your computer and use it in GitHub Desktop.
git-reviewer
#!/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-
@pauladam
Copy link
Author

pauladam commented Jul 6, 2015

Drop this in somewhere in $PATH and make sure its executable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment