diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-08 17:28:35 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-08 17:28:35 -0500 |
commit | e2d4f89c4999327c8eb1cf47b38fab43756b6c13 (patch) | |
tree | ff7b387caad5bba97799f150b51cd972158f0de1 /src/push.c | |
parent | e50d138e898dd034161663873f75716086266f86 (diff) | |
download | libgit2-ethomson/is_and_from.tar.gz |
oid: `is_zero` instead of `iszero`ethomson/is_and_from
The only function that is named `issomething` (without underscore) was
`git_oid_iszero`. Rename it to `git_oid_is_zero` for consistency with
the rest of the library.
Diffstat (limited to 'src/push.c')
-rw-r--r-- | src/push.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/push.c b/src/push.c index 9d09e18bb..6b0a4ce73 100644 --- a/src/push.c +++ b/src/push.c @@ -196,7 +196,7 @@ int git_push_update_tips(git_push *push, const git_remote_callbacks *callbacks) continue; /* Update the remote ref */ - if (git_oid_iszero(&push_spec->loid)) { + if (git_oid_is_zero(&push_spec->loid)) { error = git_reference_lookup(&remote_ref, push->remote->repo, git_buf_cstr(&remote_ref_name)); if (error >= 0) { @@ -281,7 +281,7 @@ static int queue_objects(git_push *push) git_object_t type; size_t size; - if (git_oid_iszero(&spec->loid)) + if (git_oid_is_zero(&spec->loid)) /* * Delete reference on remote side; * nothing to do here. @@ -319,7 +319,7 @@ static int queue_objects(git_push *push) if (!spec->refspec.force) { git_oid base; - if (git_oid_iszero(&spec->roid)) + if (git_oid_is_zero(&spec->roid)) continue; if (!git_odb_exists(push->repo->_odb, &spec->roid)) { @@ -346,7 +346,7 @@ static int queue_objects(git_push *push) } git_vector_foreach(&push->remote->refs, i, head) { - if (git_oid_iszero(&head->oid)) + if (git_oid_is_zero(&head->oid)) continue; /* TODO */ |