]> git.ipfire.org Git - thirdparty/git.git/blob - t/t6009-rev-list-parent.sh
am --abort: keep unrelated commits since the last failure and warn
[thirdparty/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 commit () {
8 test_tick &&
9 echo $1 >file &&
10 git commit -a -m $1 &&
11 git tag $1
12 }
13
14 test_expect_success setup '
15
16 touch file &&
17 git add file &&
18
19 commit one &&
20
21 test_tick=$(($test_tick - 2400))
22
23 commit two &&
24 commit three &&
25 commit four &&
26
27 git log --pretty=oneline --abbrev-commit
28 '
29
30 test_expect_success 'one is ancestor of others and should not be shown' '
31
32 git rev-list one --not four >result &&
33 >expect &&
34 test_cmp expect result
35
36 '
37
38 test_done