Skip to content

Instantly share code, notes, and snippets.

@armish
Created September 8, 2014 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armish/86eeecaaa9a48e12f39b to your computer and use it in GitHub Desktop.
Save armish/86eeecaaa9a48e12f39b to your computer and use it in GitHub Desktop.
For each file in the repository, follows the diff tree and extracts change-set IDs
#!/bin/bash
for i in `git ls-files`
do
git log --follow -p $i |grep "^commit" |awk "{ print \"$i\tmodified-in\t\" \$2 }"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment