diff options
author | Vicent Martà <vicent@github.com> | 2012-12-17 11:10:25 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-12-17 11:10:25 -0800 |
commit | e62171e2fc1b101512a7e86f6d990a38b78ed12b (patch) | |
tree | 8b3bc83ff2ad15ec3f1c88589482b839ef9414c3 /tests-clar/diff/index.c | |
parent | 0d10e79dd9b4c5dee72066526a6a3c99e19c545b (diff) | |
parent | ba084f7aaf431f96588b13551ebfdffdd3eb44dc (diff) | |
download | libgit2-e62171e2fc1b101512a7e86f6d990a38b78ed12b.tar.gz |
Merge pull request #1151 from arrbee/fix-diff-constructor-names
Fix diff constructor names
Diffstat (limited to 'tests-clar/diff/index.c')
-rw-r--r-- | tests-clar/diff/index.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests-clar/diff/index.c b/tests-clar/diff/index.c index 267b3291c..41941ee28 100644 --- a/tests-clar/diff/index.c +++ b/tests-clar/diff/index.c @@ -32,7 +32,7 @@ void test_diff_index__0(void) memset(&exp, 0, sizeof(exp)); - cl_git_pass(git_diff_index_to_tree(&diff, g_repo, a, NULL, &opts)); + cl_git_pass(git_diff_tree_to_index(&diff, g_repo, a, NULL, &opts)); cl_git_pass(git_diff_foreach( diff, diff_file_cb, diff_hunk_cb, diff_line_cb, &exp)); @@ -60,7 +60,7 @@ void test_diff_index__0(void) diff = NULL; memset(&exp, 0, sizeof(exp)); - cl_git_pass(git_diff_index_to_tree(&diff, g_repo, b, NULL, &opts)); + cl_git_pass(git_diff_tree_to_index(&diff, g_repo, b, NULL, &opts)); cl_git_pass(git_diff_foreach( diff, diff_file_cb, diff_hunk_cb, diff_line_cb, &exp)); @@ -125,7 +125,7 @@ void test_diff_index__1(void) memset(&exp, 0, sizeof(exp)); - cl_git_pass(git_diff_index_to_tree(&diff, g_repo, a, NULL, &opts)); + cl_git_pass(git_diff_tree_to_index(&diff, g_repo, a, NULL, &opts)); cl_assert_equal_i( GIT_EUSER, @@ -150,13 +150,13 @@ void test_diff_index__checks_options_version(void) const git_error *err; opts.version = 0; - cl_git_fail(git_diff_index_to_tree(&diff, g_repo, a, NULL, &opts)); + cl_git_fail(git_diff_tree_to_index(&diff, g_repo, a, NULL, &opts)); err = giterr_last(); cl_assert_equal_i(GITERR_INVALID, err->klass); giterr_clear(); opts.version = 1024; - cl_git_fail(git_diff_index_to_tree(&diff, g_repo, a, NULL, &opts)); + cl_git_fail(git_diff_tree_to_index(&diff, g_repo, a, NULL, &opts)); err = giterr_last(); cl_assert_equal_i(GITERR_INVALID, err->klass); } |