Skip to content

Instantly share code, notes, and snippets.

@mathieujobin
Created September 25, 2015 05:29
Show Gist options
  • Save mathieujobin/92f6b671abd7d3aa552b to your computer and use it in GitHub Desktop.
Save mathieujobin/92f6b671abd7d3aa552b to your computer and use it in GitHub Desktop.
Yes Size Matters, Tell me the size of your commits
git log --oneline --shortstat --reverse --no-merges | grep " [^a-z]*files changed" | sed 's/[^0-9 ]//g' | ruby -e 'puts STDIN.read.split(/\n/).map{|line| a = line.split; a.shift; a.size == 1 ? a.first.to_i : (a.first.to_i - a.last.to_i).abs }.join("\n")' | sort | uniq -c |sort -n | grep "^ *[0-9][0-9]\+"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment