Created
July 13, 2012 15:51
-
-
Save jhsu/3105633 to your computer and use it in GitHub Desktop.
Who has been writing tests
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
#!/usr/bin/env bash | |
for f in $(ack 'it ' 'test/unit/' | awk '{print $1}') ; do | |
file=$(echo $f | awk -F: '{print $1}') | |
line=$(echo $f | awk -F: '{print $2}') | |
command="git blame -c $file -L$line,$line" | |
$command | cut -f 2 | sed 's/(//g' | |
done | sort -bf | uniq -ic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment