Commit c5f424fd authored by Stefan Saasen's avatar Stefan Saasen Committed by Jonathan Nieder

mergetools/diffmerge: support DiffMerge as a git mergetool

DiffMerge is a non-free (but gratis) tool that supports OS X, Windows and Linux.


DiffMerge includes a script `/usr/bin/diffmerge` that can be used to launch the
graphical compare tool.

This change adds mergetool support for DiffMerge and adds 'diffmerge' as an
option to the mergetool help.
Signed-off-by: 's avatarStefan Saasen <>
Acked-by: David Aguilar's avatarDavid Aguilar <>
Signed-off-by: 's avatarJonathan Nieder <>
parent 22bbddea
......@@ -1188,7 +1188,7 @@ _git_diff ()
__git_mergetools_common="diffuse ecmerge emerge kdiff3 meld opendiff
__git_mergetools_common="diffuse diffmerge ecmerge emerge kdiff3 meld opendiff
tkdiff vimdiff gvimdiff xxdiff araxis p4merge bc3 codecompare
......@@ -250,7 +250,8 @@ list_merge_tool_candidates () {
tools="opendiff kdiff3 tkdiff xxdiff meld $tools"
tools="$tools gvimdiff diffuse ecmerge p4merge araxis bc3 codecompare"
tools="$tools gvimdiff diffuse diffmerge ecmerge"
tools="$tools p4merge araxis bc3 codecompare"
case "${VISUAL:-$EDITOR}" in
diff_cmd () {
"$merge_tool_path" "$LOCAL" "$REMOTE" >/dev/null 2>&1
merge_cmd () {
if $base_present
"$merge_tool_path" --merge --result="$MERGED" \
"$merge_tool_path" --merge \
--result="$MERGED" "$LOCAL" "$REMOTE"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment