summaryrefslogtreecommitdiff
path: root/src/oid.c
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 /src/oid.c
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 'src/oid.c')
-rw-r--r--src/oid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/oid.c b/src/oid.c
index 8d45e4d7d..605c1e613 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -237,7 +237,7 @@ int git_oid_streq(const git_oid *oid_a, const char *str)
return git_oid_strcmp(oid_a, str) == 0 ? 0 : -1;
}
-int git_oid_iszero(const git_oid *oid_a)
+int git_oid_is_zero(const git_oid *oid_a)
{
const unsigned char *a = oid_a->id;
unsigned int i;
@@ -247,6 +247,11 @@ int git_oid_iszero(const git_oid *oid_a)
return 1;
}
+int git_oid_iszero(const git_oid *oid_a)
+{
+ return git_oid_is_zero(oid_a);
+}
+
typedef short node_index;
typedef union {