aboutsummaryrefslogtreecommitdiffstats
path: root/t/select-head-4
blob: 6c9c9dd3438a0732e6b423cbba74a49c85eb60e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e
. t/common.sh

printf '%s\n' > file \
	"${HEAD} head" \
	head \
	"${PARENT} 2" \
	second \
	"${PARENT} 3" \
	third \
	"${PARENT} 4" \
	fourth \
	"${TAIL}" \
	tail \
	"${END} tail"

printf '%s\n' > file.expected \
	head

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

also_interactive h