Skip to content

Instantly share code, notes, and snippets.

@Interfere
Created May 15, 2017 12:37
Show Gist options
  • Save Interfere/7e69906f40aadd09a298c51c36485240 to your computer and use it in GitHub Desktop.
Save Interfere/7e69906f40aadd09a298c51c36485240 to your computer and use it in GitHub Desktop.
GitStat
#!/bin/bash
git ls-files "*.h" "*.m" "*.mm" "*.swift" | while read i; do git blame --line-porcelain "$i" | sed -n 's/^author //p' | tail +6; done | sort -f | uniq -ic | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment