aboutsummaryrefslogtreecommitdiffstats
path: root/t/combination-select-head-reduce
diff options
context:
space:
mode:
Diffstat (limited to 't/combination-select-head-reduce')
-rwxr-xr-xt/combination-select-head-reduce30
1 files changed, 30 insertions, 0 deletions
diff --git a/t/combination-select-head-reduce b/t/combination-select-head-reduce
new file mode 100755
index 0000000..796f613
--- /dev/null
+++ b/t/combination-select-head-reduce
@@ -0,0 +1,30 @@
+#!/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 \
+ ours \
+ common
+
+normal --select-head --reduce file
+
+also_interactive hh