t4200: use cut instead of sed
[git/peff.git] / t / t6009-rev-list-parent.sh
blobf248a3293c5d126c60dc525e410e99d5c48a8c04
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_failure '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