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-2-non-aligned | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 t/reduce-2-non-aligned (limited to 't/reduce-2-non-aligned') diff --git a/t/reduce-2-non-aligned b/t/reduce-2-non-aligned new file mode 100755 index 0000000..58202d1 --- /dev/null +++ b/t/reduce-2-non-aligned @@ -0,0 +1,43 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} 1" \ + before-common-first \ + before-common-second \ + head-only-first \ + head-only-second \ + middle-common-first \ + middle-common-second \ + head-last \ + "${TAIL} 2" \ + before-common-first \ + before-common-second \ + tail-only \ + middle-common-first \ + middle-common-second \ + tail-last-first \ + tail-last-second \ + "${END} 2" + +printf '%s\n' > file.expected \ + before-common-first \ + before-common-second \ + "${HEAD} 1" \ + head-only-first \ + head-only-second \ + "${TAIL} 2" \ + tail-only \ + "${END} 2" \ + middle-common-first \ + middle-common-second \ + "${HEAD} 1" \ + head-last \ + "${TAIL} 2" \ + tail-last-first \ + tail-last-second \ + "${END} 2" + +conflict --reduce file + +also_interactive rrr -- cgit v1.3.1