3 test_description='merge with sparse files'
7 # test_file $filename $content
13 # test_commit_this $message_and_tag
19 test_expect_success 'setup' '
21 test_file checked-out init &&
22 test_file modify_delete modify_delete_init &&
23 test_commit_this init &&
24 test_file modify_delete modify_delete_theirs &&
25 test_commit_this theirs &&
26 git reset --hard init &&
27 git rm modify_delete &&
28 test_commit_this ours &&
29 git config core.sparseCheckout true &&
30 echo "/checked-out" >.git/info/sparse-checkout &&
35 test_expect_success 'reset --hard works after the conflict' '
39 test_expect_success 'is reset properly' '
40 git status --porcelain -- modify_delete >out &&
42 test_path_is_missing modify_delete
45 test_expect_success 'setup: conflict back' '
49 test_expect_success 'Merge abort works after the conflict' '
53 test_expect_success 'is aborted properly' '
54 git status --porcelain -- modify_delete >out &&
56 test_path_is_missing modify_delete