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/apply.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/apply.c')
| -rw-r--r-- | src/apply.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/apply.c b/src/apply.c index b21d83885..bd0ba6a89 100644 --- a/src/apply.c +++ b/src/apply.c @@ -25,7 +25,7 @@ #include "index.h" #define apply_err(...) \ - ( giterr_set(GITERR_PATCH, __VA_ARGS__), GIT_EAPPLYFAIL ) + ( git_error_set(GIT_ERROR_PATCH, __VA_ARGS__), GIT_EAPPLYFAIL ) typedef struct { /* The lines that we allocate ourself are allocated out of the pool. @@ -68,7 +68,7 @@ static int patch_image_init_fromstr( end++; line = git_pool_mallocz(&out->pool, 1); - GITERR_CHECK_ALLOC(line); + GIT_ERROR_CHECK_ALLOC(line); if (git_vector_insert(&out->lines, line) < 0) return -1; @@ -155,7 +155,7 @@ static int update_hunk( &image->lines, linenum, (prelen - postlen)); if (error) { - giterr_set_oom(); + git_error_set_oom(); return -1; } @@ -483,7 +483,7 @@ static int apply_one( postimage_reader, delta->old_file.path)) == 0) { skip_preimage = true; } else if (error == GIT_ENOTFOUND) { - giterr_clear(); + git_error_clear(); error = 0; } else { goto done; @@ -777,7 +777,7 @@ int git_apply( assert(repo && diff); - GITERR_CHECK_VERSION( + GIT_ERROR_CHECK_VERSION( given_opts, GIT_APPLY_OPTIONS_VERSION, "git_apply_options"); if (given_opts) |
