Skip to content

Instantly share code, notes, and snippets.

@jstanden
Created March 18, 2009 03:26
Show Gist options
  • Save jstanden/80924 to your computer and use it in GitHub Desktop.
Save jstanden/80924 to your computer and use it in GitHub Desktop.
Integrating Changes.app and 'git diff' at command-line.
#!/bin/sh
# See: http://wiki.changesapp.com/index.php/SCM_Integration_Scripts#Git_Integration
if [ $# != 7 ]; then exit 1; fi;
if [ "$2" == "/dev/null" ]; then exit 0; fi;
if [ "$5" == "/dev/null" ]; then exit 0; fi;
/usr/bin/env chdiff --wait "$2" "$5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment