summaryrefslogtreecommitdiff
path: root/t/t6009-rev-list-parent.sh
blob: be3d238d996fed911d6098fad01ca25345059da6 (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 &&
	diff -u expect result

'

test_done