@@ -88,12 +88,12 @@ static int validate_tree_and_parents(git_array_oid_t *parents, git_repository *r
8888 git_oid * parent_cpy ;
8989 const git_oid * parent ;
9090
91- if (validate && !git_object__is_valid (repo , tree , GIT_OBJ_TREE ))
91+ if (validate && !git_object__is_valid (repo , tree , GIT_OBJECT_TREE ))
9292 return -1 ;
9393
9494 i = 0 ;
9595 while ((parent = parent_cb (i , parent_payload )) != NULL ) {
96- if (validate && !git_object__is_valid (repo , parent , GIT_OBJ_COMMIT )) {
96+ if (validate && !git_object__is_valid (repo , parent , GIT_OBJECT_COMMIT )) {
9797 error = -1 ;
9898 goto on_error ;
9999 }
@@ -164,7 +164,7 @@ static int git_commit__create_internal(
164164 if (git_odb__freshen (odb , tree ) < 0 )
165165 goto cleanup ;
166166
167- if (git_odb_write (id , odb , buf .ptr , buf .size , GIT_OBJ_COMMIT ) < 0 )
167+ if (git_odb_write (id , odb , buf .ptr , buf .size , GIT_OBJECT_COMMIT ) < 0 )
168168 goto cleanup ;
169169
170170
@@ -730,7 +730,7 @@ int git_commit_extract_signature(git_buf *signature, git_buf *signed_data, git_r
730730 if ((error = git_odb_read (& obj , odb , commit_id )) < 0 )
731731 return error ;
732732
733- if (obj -> cached .type != GIT_OBJ_COMMIT ) {
733+ if (obj -> cached .type != GIT_OBJECT_COMMIT ) {
734734 giterr_set (GITERR_INVALID , "the requested type does not match the type in ODB" );
735735 error = GIT_ENOTFOUND ;
736736 goto cleanup ;
@@ -890,7 +890,7 @@ int git_commit_create_with_signature(
890890 if ((error = git_repository_odb__weakptr (& odb , repo )) < 0 )
891891 goto cleanup ;
892892
893- if ((error = git_odb_write (out , odb , commit .ptr , commit .size , GIT_OBJ_COMMIT )) < 0 )
893+ if ((error = git_odb_write (out , odb , commit .ptr , commit .size , GIT_OBJECT_COMMIT )) < 0 )
894894 goto cleanup ;
895895
896896cleanup :
0 commit comments