Skip to content

Instantly share code, notes, and snippets.

@scottalan
Forked from travist/gist:1677353
Created August 29, 2017 21:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottalan/6be57f9a9d7af0e1d778634c22177872 to your computer and use it in GitHub Desktop.
Save scottalan/6be57f9a9d7af0e1d778634c22177872 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