t6009: use test_commit() from test-lib.sh
[git/git.git] / t / t6009-rev-list-parent.sh
CommitLineData
991c3dc7
JH
1#!/bin/sh
2
3test_description='properly cull all ancestors'
4
5. ./test-lib.sh
6
991c3dc7
JH
7test_expect_success setup '
8
9 touch file &&
10 git add file &&
11
8ee50594 12 test_commit one &&
991c3dc7 13
a48fcd83 14 test_tick=$(($test_tick - 2400)) &&
991c3dc7 15
8ee50594
MG
16 test_commit two &&
17 test_commit three &&
18 test_commit four &&
991c3dc7
JH
19
20 git log --pretty=oneline --abbrev-commit
21'
22
7d004199 23test_expect_success 'one is ancestor of others and should not be shown' '
991c3dc7
JH
24
25 git rev-list one --not four >result &&
26 >expect &&
82ebb0b6 27 test_cmp expect result
991c3dc7
JH
28
29'
30
31test_done