diff options
| author | Mattias Andrée <m@maandree.se> | 2026-09-22 19:53:29 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-09-22 19:53:29 +0200 |
| commit | d8de1b23e8ec896759424a2f146969783cdd89e3 (patch) | |
| tree | ed1ea3e97add5116230fd2df34e42b829a70ab39 /t/no-option-select-tail | |
| parent | fix doc text (diff) | |
| download | git-rediff-master.tar.gz git-rediff-master.tar.bz2 git-rediff-master.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rwxr-xr-x | t/no-option-select-tail | 28 | ||||
| -rwxr-xr-x | t/no-option-select-tail-no-yes | 18 | ||||
| -rwxr-xr-x | t/no-option-select-tail-yes-no | 17 | ||||
| -rwxr-xr-x | t/no-option-select-tail-yes-then-select-head-yes-no | 18 |
4 files changed, 81 insertions, 0 deletions
diff --git a/t/no-option-select-tail b/t/no-option-select-tail new file mode 100755 index 0000000..8c30d7e --- /dev/null +++ b/t/no-option-select-tail @@ -0,0 +1,28 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} ours" \ + same \ + ours \ + "${PARENT} base" \ + same \ + base \ + "${TAIL}" \ + same \ + theirs \ + "${END} theirs" + +printf '%s\n' > file.expected \ + same \ + "${HEAD} ours" \ + ours \ + "${PARENT} base" \ + base \ + "${TAIL}" \ + theirs \ + "${END} theirs" + +conflict --no-select-tail file + +also_interactive rr diff --git a/t/no-option-select-tail-no-yes b/t/no-option-select-tail-no-yes new file mode 100755 index 0000000..9984272 --- /dev/null +++ b/t/no-option-select-tail-no-yes @@ -0,0 +1,18 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} ours" \ + ours \ + "${PARENT} base" \ + base \ + "${TAIL}" \ + theirs \ + "${END} theirs" + +printf '%s\n' > file.expected \ + theirs + +normal --no-select-tail --select-tail --no-reduce file + +also_interactive t diff --git a/t/no-option-select-tail-yes-no b/t/no-option-select-tail-yes-no new file mode 100755 index 0000000..b2c3cc9 --- /dev/null +++ b/t/no-option-select-tail-yes-no @@ -0,0 +1,17 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} ours" \ + ours \ + "${PARENT} base" \ + base \ + "${TAIL}" \ + theirs \ + "${END} theirs" + +cp -- file file.expected + +conflict --select-tail --no-select-tail --no-reduce file + +also_interactive s diff --git a/t/no-option-select-tail-yes-then-select-head-yes-no b/t/no-option-select-tail-yes-then-select-head-yes-no new file mode 100755 index 0000000..a46efa4 --- /dev/null +++ b/t/no-option-select-tail-yes-then-select-head-yes-no @@ -0,0 +1,18 @@ +#!/bin/sh -e +. t/common.sh + +printf '%s\n' > file \ + "${HEAD} ours" \ + ours \ + "${PARENT} base" \ + base \ + "${TAIL}" \ + theirs \ + "${END} theirs" + +printf '%s\n' > file.expected \ + theirs + +normal --select-tail --select-head --no-select-head --no-reduce file + +also_interactive t |
