aboutsummaryrefslogtreecommitdiffstats
path: root/t/combination-select-tail-reduce
blob: c1504acbcf4337b07009660273c5cd4a456b86d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh -e
. t/common.sh

printf '%s\n' > file \
	"${HEAD} ours" \
	not first \
	"${PARENT} base" \
	not first \
	"${TAIL}" \
	first \
	"${END} theirs" \
	"${HEAD} ours" \
	ours \
	common \
	"${PARENT} base" \
	base \
	common \
	"${TAIL}" \
	theirs \
	common \
	"${END} theirs"

printf '%s\n' > file.expected \
	first \
	theirs \
	common

normal --select-tail --reduce file

also_interactive tt