aboutsummaryrefslogtreecommitdiffstats
path: root/t/select-head-multiple-files
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xt/select-head-multiple-files30
1 files changed, 30 insertions, 0 deletions
diff --git a/t/select-head-multiple-files b/t/select-head-multiple-files
new file mode 100755
index 0000000..ba103a1
--- /dev/null
+++ b/t/select-head-multiple-files
@@ -0,0 +1,30 @@
+#!/bin/sh -e
+. t/common.sh
+
+printf '%s\n' > first \
+ "${HEAD} first" \
+ first-head \
+ "${TAIL}" \
+ first-tail \
+ "${END}"
+
+printf '%s\n' > first.expected \
+ first-head
+
+printf '%s\n' > second \
+ before \
+ "${HEAD} second" \
+ second-head \
+ "${PARENT} middle" \
+ second-middle \
+ "${TAIL}" \
+ second-tail \
+ "${END}"
+
+printf '%s\n' > second.expected \
+ before \
+ second-head
+
+normal --select-head --no-reduce first second
+
+also_interactive hh