Skip to content

Instantly share code, notes, and snippets.

@nwb
Created June 29, 2012 00:10
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 nwb/3014859 to your computer and use it in GitHub Desktop.
Save nwb/3014859 to your computer and use it in GitHub Desktop.
GIT = $(which git)
while read oldrev newrev refname
do
echo >&2 " - $oldrev - $newrev - $refname"
while read line do
echo >&2 "-"
echo >&2 $line
# ok now do real stuff
done < < '$GIT diff --name-status $oldrev...$newrev'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment