From d8de1b23e8ec896759424a2f146969783cdd89e3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 22 Sep 2026 19:53:29 +0200 Subject: Add conflcit resultions strategies and interactive mode, and a lot of tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- t/reduce-3-multiple-partial | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 t/reduce-3-multiple-partial (limited to 't/reduce-3-multiple-partial') diff --git a/t/reduce-3-multiple-partial b/t/reduce-3-multiple-partial new file mode 100755 index 0000000..ec8cab7 --- /dev/null +++ b/t/reduce-3-multiple-partial @@ -0,0 +1,70 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} 1" \ + head-common-first \ + head-common-second \ + branch-1-first-a \ + branch-1-first-b \ + middle-common-first \ + middle-common-second \ + branch-1-second-a \ + branch-1-second-b \ + tail-common-first \ + tail-common-second \ + "${PARENT} 2" \ + head-common-first \ + head-common-second \ + branch-2-first-a \ + branch-2-first-b \ + middle-common-first \ + middle-common-second \ + branch-2-second-a \ + branch-2-second-b \ + tail-common-first \ + tail-common-second \ + "${TAIL} 3" \ + head-common-first \ + head-common-second \ + branch-3-first-a \ + branch-3-first-b \ + middle-common-first \ + middle-common-second \ + branch-3-second-a \ + branch-3-second-b \ + tail-common-first \ + tail-common-second \ + "${END} 3" + +printf '%s\n' > file.expected \ + head-common-first \ + head-common-second \ + "${HEAD} 1" \ + branch-1-first-a \ + branch-1-first-b \ + "${PARENT} 2" \ + branch-2-first-a \ + branch-2-first-b \ + "${TAIL} 3" \ + branch-3-first-a \ + branch-3-first-b \ + "${END} 3" \ + middle-common-first \ + middle-common-second \ + "${HEAD} 1" \ + branch-1-second-a \ + branch-1-second-b \ + "${PARENT} 2" \ + branch-2-second-a \ + branch-2-second-b \ + "${TAIL} 3" \ + branch-3-second-a \ + branch-3-second-b \ + "${END} 3" \ + tail-common-first \ + tail-common-second + +conflict --reduce file + +also_interactive rrr -- cgit v1.3.1