Created
October 11, 2011 06:55
-
-
Save alex-cellcity/1277468 to your computer and use it in GitHub Desktop.
Use FileMerge as Git diff tool
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
... | |
[diff] | |
external = /usr/local/bin/gitdiffcmd.sh |
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 | |
# put me into /usr/local/bin/gitdiffcmd.sh | |
# and chmod+x me | |
xattr -w com.apple.TextEncoding "UTF-8;134217984" "$2" | |
xattr -w com.apple.TextEncoding "UTF-8;134217984" "$5" | |
/usr/bin/opendiff "$2" "$5" -merge "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment