3 test_description
='git apply for contextually independent diffs'
4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 TEST_PASSES_SANITIZE_LEAK
=true
19 test_expect_success
'setup' \
22 git checkout -b test &&
25 cat file.tmp >>file &&
27 git commit -a -q -m 2 &&
29 git commit -a -q -m 3 &&
33 'check if contextually independent diffs for the same file apply' \
34 '( git diff test~2 test~1 && git diff test~1 test~0 )| git apply'