Skip to content

Instantly share code, notes, and snippets.

@mikebridge
Created March 24, 2014 19:03
Show Gist options
  • Save mikebridge/9746838 to your computer and use it in GitHub Desktop.
Save mikebridge/9746838 to your computer and use it in GitHub Desktop.
# find who added C# Tests in Test Directories, ordered by date
git ls-tree --name-only -z -r HEAD| egrep -i -z -Z -E '(Tests\..*\.*cs)$' | xargs -0 -n1 git blame --show-name -w | grep "\[Test" | grep -v TestFixture | perl -pe 's/^[^\(]+\((\w+\s*\w*)\s+(\d{4}-\d{2}-\d{2}).*/$2 $1/' | sort -n
# find who added JS Specs, ordered by date
git ls-tree --name-only -z -r HEAD| egrep -i -z -Z -E '(\.spec\.js)$' | xargs -0 -n1 git blame --show-name -w | grep "it\(" | perl -pe 's/^[^\(]+\((\w+\s*\w*)\s+(\d{4}-\d{2}-\d{2}).*/$2 $1/' | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment