diff options
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/deprecated.h | 15 | ||||
-rw-r--r-- | include/git2/oid.h | 2 |
2 files changed, 15 insertions, 2 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h index 09388cbb4..108d42213 100644 --- a/include/git2/deprecated.h +++ b/include/git2/deprecated.h @@ -271,7 +271,6 @@ GIT_EXTERN(void) giterr_set_oom(void); * There is no plan to remove these backward compatibility values at * this time. */ -/**@{*/ typedef git_cred_sign_cb git_cred_sign_callback; typedef git_cred_ssh_interactive_cb git_cred_ssh_interactive_callback; @@ -292,6 +291,20 @@ typedef git_trace_cb git_trace_callback; /**@}*/ +/** @name Deprecated Object ID Types + * + * These types are retained for backward compatibility. The newer + * versions of these values should be preferred in all new code. + * + * There is no plan to remove these backward compatibility values at + * this time. + */ +/**@{*/ + +GIT_EXTERN(int) git_oid_iszero(const git_oid *id); + +/**@}*/ + /** @name Deprecated Transfer Progress Types * * These types are retained for backward compatibility. The newer diff --git a/include/git2/oid.h b/include/git2/oid.h index 7e071bac7..8f27c1365 100644 --- a/include/git2/oid.h +++ b/include/git2/oid.h @@ -207,7 +207,7 @@ GIT_EXTERN(int) git_oid_strcmp(const git_oid *id, const char *str); * * @return 1 if all zeros, 0 otherwise. */ -GIT_EXTERN(int) git_oid_iszero(const git_oid *id); +GIT_EXTERN(int) git_oid_is_zero(const git_oid *id); /** * OID Shortener object |