Merge branch 'for-junio' of git://source.winehq.org/~julliard/git/git
[git/trast.git] / t / t6009-rev-list-parent.sh
blobc8a96a9a994badde602c8bf7a7decda048a00525
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