Skip to content

Instantly share code, notes, and snippets.

@rentalcustard
Created July 30, 2013 13:23
Show Gist options
  • Save rentalcustard/6112853 to your computer and use it in GitHub Desktop.
Save rentalcustard/6112853 to your computer and use it in GitHub Desktop.
Show the contents of all files changed in a commit at the time of the commit
git show --name-only REVISION --pretty="format:" | while read file
do
echo $file:
git show REVISION:$file
done | cat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment