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/annotated_commit.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/annotated_commit.c')
-rw-r--r-- | src/annotated_commit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/annotated_commit.c b/src/annotated_commit.c index 5ef2babec..5d4f37082 100644 --- a/src/annotated_commit.c +++ b/src/annotated_commit.c @@ -31,7 +31,7 @@ static int annotated_commit_init( *out = NULL; annotated_commit = git__calloc(1, sizeof(git_annotated_commit)); - GITERR_CHECK_ALLOC(annotated_commit); + GIT_ERROR_CHECK_ALLOC(annotated_commit); annotated_commit->type = GIT_ANNOTATED_COMMIT_REAL; @@ -45,7 +45,7 @@ static int annotated_commit_init( description = annotated_commit->id_str; annotated_commit->description = git__strdup(description); - GITERR_CHECK_ALLOC(annotated_commit->description); + GIT_ERROR_CHECK_ALLOC(annotated_commit->description); done: if (!error) @@ -140,7 +140,7 @@ int git_annotated_commit_from_ref( if (!error) { (*out)->ref_name = git__strdup(git_reference_name(ref)); - GITERR_CHECK_ALLOC((*out)->ref_name); + GIT_ERROR_CHECK_ALLOC((*out)->ref_name); } git_object_free(peeled); @@ -180,10 +180,10 @@ int git_annotated_commit_from_fetchhead( return -1; (*out)->ref_name = git__strdup(branch_name); - GITERR_CHECK_ALLOC((*out)->ref_name); + GIT_ERROR_CHECK_ALLOC((*out)->ref_name); (*out)->remote_url = git__strdup(remote_url); - GITERR_CHECK_ALLOC((*out)->remote_url); + GIT_ERROR_CHECK_ALLOC((*out)->remote_url); return 0; } |