Merge branch 'rr/needs-clean-work-tree'
[git/jnareb-git.git] / t / t6009-rev-list-parent.sh
blob52f7b277ceae3ae183bc6082c01af9f76bd39a86
1 #!/bin/sh
3 test_description='properly cull all ancestors'
5 . ./test-lib.sh
7 commit () {
8 test_tick &&
9 echo $1 >file &&
10 git commit -a -m $1 &&
11 git tag $1
14 test_expect_success setup '
16 touch file &&
17 git add file &&
19 commit one &&
21 test_tick=$(($test_tick - 2400)) &&
23 commit two &&
24 commit three &&
25 commit four &&
27 git log --pretty=oneline --abbrev-commit
30 test_expect_success 'one is ancestor of others and should not be shown' '
32 git rev-list one --not four >result &&
33 >expect &&
34 test_cmp expect result
38 test_done