Skip to content

Instantly share code, notes, and snippets.

@ptitfred
Created September 5, 2011 08:15
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 ptitfred/1194382 to your computer and use it in GitHub Desktop.
Save ptitfred/1194382 to your computer and use it in GitHub Desktop.
Diff 2 commits
#!/bin/bash
from="$1"
to="$2"
for file in $(git show --numstat $from --pretty=format: | cut -f3)
do
git diff $from $to -- $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment