Skip to content

Instantly share code, notes, and snippets.

@Alanaktion
Created November 3, 2015 07:00
Show Gist options
  • Save Alanaktion/11279d2a9c63c179c381 to your computer and use it in GitHub Desktop.
Save Alanaktion/11279d2a9c63c179c381 to your computer and use it in GitHub Desktop.
Phproject stat calculation
git ls-tree --name-only -z -r HEAD |\
grep -zZP '^(?!(lib|tmp|fonts|app/helper/(diff|textile))/)(?!(css|less|js)/(bootstrap|jquery|chart|respond|modernizr|datepicker|simplemde|intercom|stupidtable|typeahead|bootswatch)).*\.(php|css|less|js|html)$' |\
xargs -0 -n1 git blame --line-porcelain |\
grep \"^author \" | sort | uniq -c | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment