Last active
April 28, 2016 21:16
-
-
Save cletusw/6952ef729fbf06c867f6 to your computer and use it in GitHub Desktop.
Most blamed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git blame --line-porcelain -L 300,319 path/to/file.js | sed -n 's/^author //p' | sort | uniq -c | sort -rn | sed -n '1 p' | sed -n 's/^ *[0-9]* //p' | |
# Or to see all for an entire directory | |
git log --pretty=format:"%an" -- path/to/dir/ | sort | uniq -c | sort -rn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment