]>
Commit | Line | Data |
---|---|---|
991c3dc7 JH |
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 | ||
7d004199 | 30 | test_expect_success 'one is ancestor of others and should not be shown' ' |
991c3dc7 JH |
31 | |
32 | git rev-list one --not four >result && | |
33 | >expect && | |
82ebb0b6 | 34 | test_cmp expect result |
991c3dc7 JH |
35 | |
36 | ' | |
37 | ||
38 | test_done |