diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2013-01-12 13:47:56 -0600 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2013-01-12 13:47:56 -0600 |
| commit | 25743bd7c5f14f2287d9c4fdf953c978e3b16916 (patch) | |
| tree | 7390d1d2d5d52f549329853903f381e58c1b1de6 /tests-clar/checkout | |
| parent | e2d2c6e57d122f381fb42b7df1c7a12819050490 (diff) | |
| download | libgit2-25743bd7c5f14f2287d9c4fdf953c978e3b16916.tar.gz | |
add an index_remove_bypath that removes conflicts, renamed add_from_workdir to match
Diffstat (limited to 'tests-clar/checkout')
| -rw-r--r-- | tests-clar/checkout/head.c | 2 | ||||
| -rw-r--r-- | tests-clar/checkout/index.c | 4 | ||||
| -rw-r--r-- | tests-clar/checkout/tree.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/checkout/head.c b/tests-clar/checkout/head.c index 8b3099303..46646f8bf 100644 --- a/tests-clar/checkout/head.c +++ b/tests-clar/checkout/head.c @@ -40,7 +40,7 @@ void test_checkout_head__with_index_only_tree(void) p_mkdir("testrepo/newdir", 0777); cl_git_mkfile("testrepo/newdir/newfile.txt", "new file\n"); - cl_git_pass(git_index_add_from_workdir(index, "newdir/newfile.txt")); + cl_git_pass(git_index_add_bypath(index, "newdir/newfile.txt")); cl_git_pass(git_index_write(index)); cl_assert(git_path_isfile("testrepo/newdir/newfile.txt")); diff --git a/tests-clar/checkout/index.c b/tests-clar/checkout/index.c index 2dc08715d..9a70f3166 100644 --- a/tests-clar/checkout/index.c +++ b/tests-clar/checkout/index.c @@ -417,8 +417,8 @@ void test_checkout_index__can_overcome_name_clashes(void) cl_git_pass(p_mkdir("./testrepo/path1", 0777)); cl_git_mkfile("./testrepo/path1/file1", "content\r\n"); - cl_git_pass(git_index_add_from_workdir(index, "path0")); - cl_git_pass(git_index_add_from_workdir(index, "path1/file1")); + cl_git_pass(git_index_add_bypath(index, "path0")); + cl_git_pass(git_index_add_bypath(index, "path1/file1")); cl_git_pass(p_unlink("./testrepo/path0")); cl_git_pass(git_futils_rmdir_r( diff --git a/tests-clar/checkout/tree.c b/tests-clar/checkout/tree.c index 80e26a15a..176dcceb9 100644 --- a/tests-clar/checkout/tree.c +++ b/tests-clar/checkout/tree.c @@ -406,7 +406,7 @@ 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)); cl_assert_equal_i( |
