aboutsummaryrefslogtreecommitdiffstats
path: root/t/select-head-multiple-hunks
blob: f0bad1349b8286fbcff8c45fe3b03236638e2e0d (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-head \
	between \
	second-head \
	after

normal --select-head --no-reduce file

also_interactive hh