Skip to content

Instantly share code, notes, and snippets.

@travist
Created January 25, 2012 17:09
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save travist/1677353 to your computer and use it in GitHub Desktop.
Save travist/1677353 to your computer and use it in GitHub Desktop.
Determine the diff provided a Story ID.
git log\
| grep "Merge pull request.*{INSERT STORY ID HERE}" -B 5\
| awk '{\
if ($1=="commit") {\
print system("git diff " $2 "^ " $2);\
}\
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment