Skip to content

Instantly share code, notes, and snippets.

@dholdren
Created March 17, 2015 16:27
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 dholdren/133a25a9f0e7b340410e to your computer and use it in GitHub Desktop.
Save dholdren/133a25a9f0e7b340410e to your computer and use it in GitHub Desktop.
diff production heroku with master
#Usage:
#git heroku-prod-diff #display a diff locally
#git compare-heroku #displays a diff on github, requires hub (https://hub.github.com/)
heroku-prod-deployed-commit = !sh -c 'heroku releases -r production | grep Deploy | tr -s \" \" | cut -d \" \" -f 3 | head -n 1' -
heroku-prod-diff = !sh -c 'git diff $(git heroku-prod-deployed-commit)..master'
#requires hub
compare-heroku = !sh -c 'hub compare $(git heroku-prod-deployed-commit)..master'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment