Created
April 30, 2014 20:47
-
-
Save swilliams/ef7a57db92ea90597eab to your computer and use it in GitHub Desktop.
Run git blame on a repository and group results by committer
This file contains 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
#!/bin/sh | |
# Requires gnu sed to work. | |
git ls-tree -r HEAD|sed -re 's/^.{53}//'|while read filename; do file "$filename"; done|grep -E ': .*text'|sed -r -e 's/: .*//'|while read filename; do git blame -w "$filename"; done|sed -r -e 's/.*\((.*)[0-9]{4}-[0-9]{2}-[0-9]{2} .*/\1/' -e 's/ +$//'|sort|uniq -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment