Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created July 13, 2012 15:51
Show Gist options
  • Save jhsu/3105633 to your computer and use it in GitHub Desktop.
Save jhsu/3105633 to your computer and use it in GitHub Desktop.
Who has been writing tests
#!/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