diff options
| author | Mattias Andrée <m@maandree.se> | 2026-09-24 23:19:13 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-09-24 23:19:13 +0200 |
| commit | 9b98f1a9222e5e96949bf74538a97900f2d847b1 (patch) | |
| tree | 468ab35cb2ac75ef1c48d76189520ee9bad23495 /t/no-option-symmetric | |
| parent | Add conflcit resultions strategies and interactive mode, and a lot of tests (diff) | |
| download | git-rediff-9b98f1a9222e5e96949bf74538a97900f2d847b1.tar.gz git-rediff-9b98f1a9222e5e96949bf74538a97900f2d847b1.tar.bz2 git-rediff-9b98f1a9222e5e96949bf74538a97900f2d847b1.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rwxr-xr-x | t/no-option-symmetric | 28 | ||||
| -rwxr-xr-x | t/no-option-symmetric-no-yes | 18 | ||||
| -rwxr-xr-x | t/no-option-symmetric-yes-no | 17 |
3 files changed, 63 insertions, 0 deletions
diff --git a/t/no-option-symmetric b/t/no-option-symmetric new file mode 100755 index 0000000..82d6b73 --- /dev/null +++ b/t/no-option-symmetric @@ -0,0 +1,28 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} ours" \ + same \ + new \ + "${PARENT} base" \ + same \ + old \ + "${TAIL}" \ + same \ + new \ + "${END} theirs" + +printf '%s\n' > file.expected \ + same \ + "${HEAD} ours" \ + new \ + "${PARENT} base" \ + old \ + "${TAIL}" \ + new \ + "${END} theirs" + +conflict --no-symmetric file + +also_interactive r diff --git a/t/no-option-symmetric-no-yes b/t/no-option-symmetric-no-yes new file mode 100755 index 0000000..45954cb --- /dev/null +++ b/t/no-option-symmetric-no-yes @@ -0,0 +1,18 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} ours" \ + new \ + "${PARENT} base" \ + old \ + "${TAIL}" \ + new \ + "${END} theirs" + +printf '%s\n' > file.expected \ + new + +normal --no-symmetric --symmetric --no-reduce file + +also_interactive y diff --git a/t/no-option-symmetric-yes-no b/t/no-option-symmetric-yes-no new file mode 100755 index 0000000..415467c --- /dev/null +++ b/t/no-option-symmetric-yes-no @@ -0,0 +1,17 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} ours" \ + same \ + "${PARENT} base" \ + base \ + "${TAIL}" \ + same \ + "${END} theirs" + +cp -- file file.expected + +conflict --symmetric --no-symmetric --no-reduce file + +also_interactive r |
