oid: give oids a type

`git_oid`s now have a type, and we require the oid type when creating
the object id from creation functions.
This commit is contained in:
Edward Thomson
2022-01-23 09:47:01 -05:00
parent 61838295a0
commit 3fbf580c91
190 changed files with 1151 additions and 1006 deletions

View File

@@ -37,7 +37,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
git_commit_graph_entry e;
git_str commit_graph_buf = GIT_STR_INIT;
unsigned char hash[GIT_HASH_SHA1_SIZE];
git_oid oid = {{0}};
git_oid oid = GIT_OID_NONE;
bool append_hash = false;
if (size < 4)

View File

@@ -36,7 +36,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
git_midx_entry e;
git_str midx_buf = GIT_STR_INIT;
unsigned char hash[GIT_HASH_SHA1_SIZE];
git_oid oid = {{0}};
git_oid oid = GIT_OID_NONE;
bool append_hash = false;
if (size < 4)