aboutsummaryrefslogtreecommitdiffstats
path: root/t/select-tail-multiple-hunks
blob: eaa80f13ae63cbdbcd5e14f986f6404ea0cdbfa2 (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
#!/bin/sh -e
. t/common.sh

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

printf '%s\n' > file.expected \
	first-tail \
	between \
	second-tail \
	after

normal --select-tail --no-reduce file

also_interactive tt