aboutsummaryrefslogtreecommitdiffstats
path: root/t/combination-merge-reduce
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xt/combination-merge-reduce36
1 files changed, 36 insertions, 0 deletions
diff --git a/t/combination-merge-reduce b/t/combination-merge-reduce
new file mode 100755
index 0000000..aec3a30
--- /dev/null
+++ b/t/combination-merge-reduce
@@ -0,0 +1,36 @@
+#!/bin/sh -e
+. t/common.sh
+
+printf '%s\n' > file \
+ "${HEAD} ours" \
+ first \
+ "${PARENT} base" \
+ not first \
+ "${TAIL}" \
+ not first \
+ "${END} theirs" \
+ "${HEAD} ours" \
+ ours \
+ common \
+ "${PARENT} base" \
+ base \
+ common \
+ "${TAIL}" \
+ theirs \
+ common \
+ "${END} theirs"
+
+printf '%s\n' > file.expected \
+ first \
+ "${HEAD} ours" \
+ ours \
+ "${PARENT} base" \
+ base \
+ "${TAIL}" \
+ theirs \
+ "${END} theirs" \
+ common
+
+conflict --merge --reduce file
+
+also_interactive mm