Skip to content

Instantly share code, notes, and snippets.

@thirtysixthspan
Created September 27, 2014 21:46
Show Gist options
  • Save thirtysixthspan/7f61e799b70ac36fd212 to your computer and use it in GitHub Desktop.
Save thirtysixthspan/7f61e799b70ac36fd212 to your computer and use it in GitHub Desktop.
who_wrote_this_code
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