aboutsummaryrefslogtreecommitdiffstats
path: root/t/select-tail-multiple-files
blob: f2c8ae84925a8baad7ef7749107489b7a159e7cb (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' > first \
	"${HEAD} first" \
	first-head \
	"${TAIL}" \
	first-tail \
	"${END}"

printf '%s\n' > first.expected \
	first-tail

printf '%s\n' > second \
	before \
	"${HEAD} second" \
	second-head \
	"${PARENT} middle" \
	second-middle \
	"${TAIL}" \
	second-tail \
	"${END}"

printf '%s\n' > second.expected \
	before \
	second-tail

normal --select-tail --no-reduce first second

also_interactive tt