From f673e232afe22eb865cdc915e55a2df6493f0fbb Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Thu, 27 Dec 2018 13:47:34 -0600 Subject: git_error: use new names in internal APIs and usage Move to the `git_error` name in the internal API for error-related functions. --- tests/diff/index.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/diff/index.c') diff --git a/tests/diff/index.c b/tests/diff/index.c index 0293b7821..b616a372b 100644 --- a/tests/diff/index.c +++ b/tests/diff/index.c @@ -149,15 +149,15 @@ void test_diff_index__checks_options_version(void) opts.version = 0; 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); + err = git_error_last(); + cl_assert_equal_i(GIT_ERROR_INVALID, err->klass); cl_assert_equal_p(diff, NULL); - giterr_clear(); + git_error_clear(); opts.version = 1024; 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); + err = git_error_last(); + cl_assert_equal_i(GIT_ERROR_INVALID, err->klass); cl_assert_equal_p(diff, NULL); git_tree_free(a); -- cgit v1.2.1