aboutsummaryrefslogtreecommitdiff
path: root/t/t6009-rev-list-parent.sh
blob: f248a3293c5d126c60dc525e410e99d5c48a8c04 (plain)
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
31
32
33
34
35
36
37
38
#!/bin/sh

test_description='properly cull all ancestors'

. ./test-lib.sh

commit () {
	test_tick &&
	echo $1 >file &&
	git commit -a -m $1 &&
	git tag $1
}

test_expect_success setup '

	touch file &&
	git add file &&

	commit one &&

	test_tick=$(($test_tick - 2400))

	commit two &&
	commit three &&
	commit four &&

	git log --pretty=oneline --abbrev-commit
'

test_expect_failure 'one is ancestor of others and should not be shown' '

	git rev-list one --not four >result &&
	>expect &&
	test_cmp expect result

'

test_done