]> git.proxmox.com Git - libgit2.git/commitdiff
Merge pull request #1239 from ethomson/index_remove
authorVicent Martí <vicent@github.com>
Fri, 18 Jan 2013 00:56:57 +0000 (16:56 -0800)
committerVicent Martí <vicent@github.com>
Fri, 18 Jan 2013 00:56:57 +0000 (16:56 -0800)
add an index_remove_bypath that removes conflicts

1  2 
src/submodule.c
tests-clar/checkout/index.c
tests-clar/checkout/tree.c

diff --cc src/submodule.c
Simple merge
Simple merge
index b877b2eca69ac809c809b2f7d8d8f93344c8dcf7,176dcceb9450b55827e9a09e6b514eb82edd1672..821cbfe0e48e1313fded69c0b64478649e09a26d
@@@ -407,9 -406,8 +407,9 @@@ void assert_conflict
                GIT_EMERGECONFLICT, git_checkout_tree(g_repo, g_object, &g_opts));
  
        /* Stage the conflicting change */
-       cl_git_pass(git_index_add_from_workdir(index, entry_path));
+       cl_git_pass(git_index_add_bypath(index, entry_path));
        cl_git_pass(git_index_write(index));
 +      git_index_free(index);
  
        cl_assert_equal_i(
                GIT_EMERGECONFLICT, git_checkout_tree(g_repo, g_object, &g_opts));