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
18 test_expect_success
'setup' \
21 git checkout -b test &&
24 cat file.tmp >>file &&
26 git commit -a -q -m 2 &&
28 git commit -a -q -m 3 &&
32 'check if contextually independent diffs for the same file apply' \
33 '( git diff test~2 test~1 && git diff test~1 test~0 )| git apply'