3 test_description
='--reverse combines with --parents'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
18 test_expect_success
'set up --reverse example' '
22 git checkout -b side HEAD^ &&
25 git merge -s ours side &&
29 test_expect_success
'--reverse --parents --full-history combines correctly' '
30 git rev-list --parents --full-history main -- foo |
31 perl -e "print reverse <>" > expected &&
32 git rev-list --reverse --parents --full-history main -- foo \
34 test_cmp expected actual
37 test_expect_success
'--boundary does too' '
38 git rev-list --boundary --parents --full-history main ^root -- foo |
39 perl -e "print reverse <>" > expected &&
40 git rev-list --boundary --reverse --parents --full-history \
41 main ^root -- foo > actual &&
42 test_cmp expected actual