Created
February 6, 2013 18:10
-
-
Save brandon-beacher/4724552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TMP_FILE=`mktemp /tmp/XXXXXX` | |
git diff "$1" "$2" > "$TMP_FILE.diff" | |
~/bin/subl -w -n "$TMP_FILE.diff" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This goes into a file somewhere in your path named
ksdiff
.Mine is at
/usr/local/bin/ksdiff
This tricks gitbox into using sublime for diffs.