Skip to content

Instantly share code, notes, and snippets.

@splbio
Created April 19, 2014 20:06
Show Gist options
  • Save splbio/11095878 to your computer and use it in GitHub Desktop.
Save splbio/11095878 to your computer and use it in GitHub Desktop.
# get the dif based on a pull request.
# first get the merge info
% git log --format="%p" -1 refs/pull/1/merge
395a6b6 c07adb2
# find the common parent
% git merge-base 395a6b6 c07adb2
7a6ad5e1339681dda3ba55722307143b09685038
# now get the diff for the entire thing.
% git diff 7a6ad5e1339681dda3ba55722307143b09685038..c07adb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment