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/tree.c | |
parent | e50d138e898dd034161663873f75716086266f86 (diff) | |
download | libgit2-e2d4f89c4999327c8eb1cf47b38fab43756b6c13.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/tree.c')
-rw-r--r-- | src/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c index 12317540c..5a48bfcf8 100644 --- a/src/tree.c +++ b/src/tree.c @@ -479,7 +479,7 @@ static int check_entry(git_repository *repo, const char *filename, const git_oid if (!valid_entry_name(repo, filename)) return tree_error("failed to insert entry: invalid name for a tree entry", filename); - if (git_oid_iszero(id)) + if (git_oid_is_zero(id)) return tree_error("failed to insert entry: invalid null OID", filename); if (filemode != GIT_FILEMODE_COMMIT && |