3 test_description
='--reverse combines with --parents'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 TEST_PASSES_SANITIZE_LEAK
=true
19 test_expect_success
'set up --reverse example' '
23 git checkout -b side HEAD^ &&
26 git merge -s ours side &&
30 test_expect_success
'--reverse --parents --full-history combines correctly' '
31 git rev-list --parents --full-history main -- foo |
32 perl -e "print reverse <>" > expected &&
33 git rev-list --reverse --parents --full-history main -- foo \
35 test_cmp expected actual
38 test_expect_success
'--boundary does too' '
39 git rev-list --boundary --parents --full-history main ^root -- foo |
40 perl -e "print reverse <>" > expected &&
41 git rev-list --boundary --reverse --parents --full-history \
42 main ^root -- foo > actual &&
43 test_cmp expected actual