Created
September 27, 2014 21:46
-
-
Save thirtysixthspan/7f61e799b70ac36fd212 to your computer and use it in GitHub Desktop.
who_wrote_this_code
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
function who_wrote_this_code { find $1 \( ! -regex '.*/\..*' \) -name '*.rb' -type f -print -exec git blame '{}' \; | ruby -pe "sub /(^.*\((.*?)\s+2.*$)/, '\2'" | egrep -vE '[[:punct:][:digit:]]' | sort | uniq -c | sort -nr; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment