summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-08 17:28:35 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-16 00:16:47 +0100
commit5d92e54745eaad2c89aa6457d504411ceee3a4f4 (patch)
tree2b417c13f9bc008dff9bad153eeb5b74c5a09fb8 /include/git2
parentfef847ae57d74e93563bc04222d9da7007fffc4f (diff)
downloadlibgit2-5d92e54745eaad2c89aa6457d504411ceee3a4f4.tar.gz
oid: `is_zero` instead of `iszero`
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 'include/git2')
-rw-r--r--include/git2/deprecated.h15
-rw-r--r--include/git2/oid.h2
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