aboutsummaryrefslogtreecommitdiffstats
path: root/t/reduce-5-head
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-09-22 19:53:29 +0200
committerMattias Andrée <m@maandree.se>2026-09-22 19:53:29 +0200
commitd8de1b23e8ec896759424a2f146969783cdd89e3 (patch)
treeed1ea3e97add5116230fd2df34e42b829a70ab39 /t/reduce-5-head
parentfix doc text (diff)
downloadgit-rediff-d8de1b23e8ec896759424a2f146969783cdd89e3.tar.gz
git-rediff-d8de1b23e8ec896759424a2f146969783cdd89e3.tar.bz2
git-rediff-d8de1b23e8ec896759424a2f146969783cdd89e3.tar.xz
Add conflcit resultions strategies and interactive mode, and a lot of testsHEAD1.1master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 't/reduce-5-head')
-rwxr-xr-xt/reduce-5-head54
1 files changed, 54 insertions, 0 deletions
diff --git a/t/reduce-5-head b/t/reduce-5-head
new file mode 100755
index 0000000..a85ca8c
--- /dev/null
+++ b/t/reduce-5-head
@@ -0,0 +1,54 @@
+#!/bin/sh -e
+. t/common.sh
+
+printf '%s\n' > file \
+ "${HEAD} 1" \
+ head-common-first \
+ head-common-second \
+ branch-1-first \
+ branch-1-second \
+ "${PARENT} 2" \
+ head-common-first \
+ head-common-second \
+ branch-2-first \
+ branch-2-second \
+ "${PARENT} 3" \
+ head-common-first \
+ head-common-second \
+ branch-3-first \
+ branch-3-second \
+ "${PARENT} 4" \
+ head-common-first \
+ head-common-second \
+ branch-4-first \
+ branch-4-second \
+ "${TAIL} 5" \
+ head-common-first \
+ head-common-second \
+ branch-5-first \
+ branch-5-second \
+ "${END} 5"
+
+printf '%s\n' > file.expected \
+ head-common-first \
+ head-common-second \
+ "${HEAD} 1" \
+ branch-1-first \
+ branch-1-second \
+ "${PARENT} 2" \
+ branch-2-first \
+ branch-2-second \
+ "${PARENT} 3" \
+ branch-3-first \
+ branch-3-second \
+ "${PARENT} 4" \
+ branch-4-first \
+ branch-4-second \
+ "${TAIL} 5" \
+ branch-5-first \
+ branch-5-second \
+ "${END} 5"
+
+conflict --reduce file
+
+also_interactive rr