diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-12-27 13:47:34 -0600 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-22 22:30:35 +0000 |
commit | f673e232afe22eb865cdc915e55a2df6493f0fbb (patch) | |
tree | e79e3e6fb1e1d78367679aea75e66c8141b4daa8 /src/diff_parse.c | |
parent | 647dfdb42d06514a85c1499f1be88a32b8a4c24b (diff) | |
download | libgit2-f673e232afe22eb865cdc915e55a2df6493f0fbb.tar.gz |
git_error: use new names in internal APIs and usage
Move to the `git_error` name in the internal API for error-related
functions.
Diffstat (limited to 'src/diff_parse.c')
-rw-r--r-- | src/diff_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diff_parse.c b/src/diff_parse.c index 59fd8612a..b4c76a3eb 100644 --- a/src/diff_parse.c +++ b/src/diff_parse.c @@ -78,10 +78,10 @@ int git_diff_from_buffer( *out = NULL; diff = diff_parsed_alloc(); - GITERR_CHECK_ALLOC(diff); + GIT_ERROR_CHECK_ALLOC(diff); ctx = git_patch_parse_ctx_init(content, content_len, NULL); - GITERR_CHECK_ALLOC(ctx); + GIT_ERROR_CHECK_ALLOC(ctx); while (ctx->parse_ctx.remain_len) { if ((error = git_patch_parse(&patch, ctx)) < 0) @@ -92,7 +92,7 @@ int git_diff_from_buffer( } if (error == GIT_ENOTFOUND && git_vector_length(&diff->patches) > 0) { - giterr_clear(); + git_error_clear(); error = 0; } |