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