Created
August 28, 2013 11:44
-
-
Save Fykec/6365125 to your computer and use it in GitHub Desktop.
TextWrangler as git mergetool
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] | |
tool = "twdiff" | |
[difftool] | |
prompt = false | |
[difftool "twdiff"] | |
cmd = /usr/local/bin/twdiff --wait --resume "$LOCAL" "$REMOTE" | |
[merge] | |
tool = "twdiff" | |
[mergetool] | |
prompt = false | |
[mergetool "twdiff"] | |
cmd = /usr/local/bin/twdiff --wait --resume "$LOCAL" "$REMOTE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want mergetool to actually do the merge for you, you have to write the output to $MERGED. (Did this change sometime in the last 5 years?
In any case, here's a script that will work with bbedit/bbdiff or textwrangler/twdiff. You change the temp files it creates for $LOCAL and $REMOTE, then save both. If they are identical, then send it to $MERGED.
And here is the updated gitconfig.
Of course, if you're using textwrangler, then just use twmerge and twdiff.