about summary refs log tree commit diff
path: root/mergetools/ecmerge
diff options
context:
space:
mode:
Diffstat (limited to 'mergetools/ecmerge')
-rw-r--r--mergetools/ecmerge14
1 files changed, 14 insertions, 0 deletions
diff --git a/mergetools/ecmerge b/mergetools/ecmerge
new file mode 100644
index 000000000000..6c5101c4f729
--- /dev/null
+++ b/mergetools/ecmerge
@@ -0,0 +1,14 @@
+diff_cmd () {
+	"$merge_tool_path" --default --mode=diff2 "$LOCAL" "$REMOTE"
+}
+
+merge_cmd () {
+	if $base_present
+	then
+		"$merge_tool_path" "$BASE" "$LOCAL" "$REMOTE" \
+			--default --mode=merge3 --to="$MERGED"
+	else
+		"$merge_tool_path" "$LOCAL" "$REMOTE" \
+			--default --mode=merge2 --to="$MERGED"
+	fi
+}