-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mergetools/diffmerge: support DiffMerge as a git mergetool
DiffMerge is a non-free (but gratis) tool that supports OS X, Windows and Linux. See http://www.sourcegear.com/diffmerge/ 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: Stefan Saasen <ssaasen@atlassian.com> Acked-by: David Aguilar <davvid@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
- Loading branch information
Stefan Saasen
authored and
Jonathan Nieder
committed
Oct 13, 2013
1 parent
22bbdde
commit c5f424f
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff_cmd () { | ||
"$merge_tool_path" "$LOCAL" "$REMOTE" >/dev/null 2>&1 | ||
} | ||
|
||
merge_cmd () { | ||
if $base_present | ||
then | ||
"$merge_tool_path" --merge --result="$MERGED" \ | ||
"$LOCAL" "$BASE" "$REMOTE" | ||
else | ||
"$merge_tool_path" --merge \ | ||
--result="$MERGED" "$LOCAL" "$REMOTE" | ||
fi | ||
status=$? | ||
} |