t6009: use test_commit() from test-lib.sh
[git/git.git] / t / t6009-rev-list-parent.sh
1 #!/bin/sh
2
3 test_description='properly cull all ancestors'
4
5 . ./test-lib.sh
6
7 test_expect_success setup '
8
9 touch file &&
10 git add file &&
11
12 test_commit one &&
13
14 test_tick=$(($test_tick - 2400)) &&
15
16 test_commit two &&
17 test_commit three &&
18 test_commit four &&
19
20 git log --pretty=oneline --abbrev-commit
21 '
22
23 test_expect_success 'one is ancestor of others and should not be shown' '
24
25 git rev-list one --not four >result &&
26 >expect &&
27 test_cmp expect result
28
29 '
30
31 test_done