aboutsummaryrefslogtreecommitdiffstats
path: root/t/stdin-no-operand
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/stdin-no-operand
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/stdin-no-operand')
-rwxr-xr-xt/stdin-no-operand21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/stdin-no-operand b/t/stdin-no-operand
new file mode 100755
index 0000000..54a3cb4
--- /dev/null
+++ b/t/stdin-no-operand
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+. t/common.sh
+
+printf '%s\n' > file \
+ "${HEAD} HEAD" \
+ same \
+ "${TAIL}" \
+ same \
+ "${END} branch"
+
+printf '%s\n' > file.expected \
+ same
+
+cp -- file input
+normal --reduce < input > output
+cmp -s -- file input
+diff -u -- output file.expected >&2
+
+also_interactive r < input > output
+cmp -s -- file input
+diff -u -- output file.expected >&2