Skip to content

Instantly share code, notes, and snippets.

@ka8725
Created October 9, 2011 04:02
Show Gist options
  • Save ka8725/1273265 to your computer and use it in GitHub Desktop.
Save ka8725/1273265 to your computer and use it in GitHub Desktop.
Statistic
time git ls-files --exclude-standard -c -o | awk '/^[^v]/ {print $1}' | ruby -e 'res = {}; STDIN.read.split.map{|file| `git blame -e #{file}`.split.map{|line| line[/<[^>]+?>/i, 1]}.compact.sort.group_by(&:to_s).map{|email, group| res[email] ||= 0; res[email] += group.size}}; puts res.inspect'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment