Beyond Compare can be configured as the external difference utility in many popular VCS applications. The following are configuration instructions submitted by our users. Let us know if you have one to add to the list.
Index:
Cornerstone SVN Git IntelliJ IDEA 12 Mercurial 2.4.2 Perforce SmartCVS SourceTree Subversion Syncovery Mac Tower (Git)
In Cornerstone, you can specify a custom external compare script.
Launch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.
-- Cornerstone executes the script as: -- /path/to/tool-- on run argv do shell script "/usr/local/bin/bcomp \"" & item 1 of argv & "\" \"" & item 2 of argv & "\"" end run
Set in Preferences | General | External compare tool | Other Script...
(Note: Use bc3
on the command line for BC version 4. Caused by git legacy support from Linux.)
Launch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.
git config --global diff.tool bc3
To launch a diff using Beyond Compare, use the command: git difftool file.ext
git config --global merge.tool bc3
git config --global mergetool.bc3 trustExitCode true
To launch a 3-way merge using Beyond Compare, use the command: git mergetool file.ext
$HOME/.gitconfig
:[diff]
tool = bcomp
[difftool]
prompt = false
[difftool "bcomp"]
trustExitCode = true
cmd = "/usr/local/bin/bcomp" \"$LOCAL\" \"$REMOTE\"
[merge]
tool = bcomp
[mergetool]
prompt = false
[mergetool "bcomp"]
trustExitCode = true
cmd = "/usr/local/bin/bcomp" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
git difftool file.ext
git mergetool file.ext
The first step is to launch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.
In IntelliJ's Settings dialog, under IDE Settings, select the External Diff Tools section:
Compare foldersLaunch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.
[ui] merge = bcomp [extensions] extdiff = [extdiff] cmd.bcomp = /usr/local/bin/bcomp #opts.bcomp = -ro [merge-tools] bcomp.executable = /usr/local/bin/bcomp bcomp.args = $local $other $base $output bcomp.priority = 1 bcomp.premerge = True bcomp.gui = True
Launch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.
/usr/local/bin/bcomp
%1 %2
/usr/local/bin/bcomp
%1 %2 %b %r
/usr/local/bin/bcomp
in Command and ${leftFile} ${rightFile}
in Arguments.From the Beyond Compare menu, Install Command Line Tools. Then:
Visual Diff Tool: Other Diff Command:/usr/local/bin/bcomp Parameters:-ro $LOCAL $REMOTE Merge Tool: Other Merge Command:/usr/local/bin/bcomp Parameters:$LOCAL $REMOTE $BASE $MERGED
Launch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.
Create a file named /usr/local/bin/bcdiff.sh
and allow execute permissions (chmod +x). Add the following lines:/usr/local/bin/bcomp "$6" "$7" -title1="$3" -title2="$5" -readonly
exit 0
Edit $HOME/.subversion/config
and add the line diff-cmd = /usr/local/bin/bcdiff.sh
in [Helpers].
Create a file named /usr/local/bin/bcmerge.sh
and allow execute permissions (chmod +x). Add the following line:/usr/local/bin/bcomp "$2" "$3" "$1" "$4"
Edit $HOME/.subversion/config
and add the line merge-tool-cmd = /usr/local/bin/bcmerge.sh
in [Helpers].
The first step is to launch Beyond Compare, go to the Beyond Compare menu and run Install Command Line Tools.
Then to configure Syncovery:
/usr/local/bin/bcompare
(or the pathname given when using BC4's Install Command Line Tools).