@@ -30,7 +30,7 @@ GIT_BEGIN_DECL
3030 *
3131 * The 'type' parameter must match the type of the object
3232 * in the odb; the method will fail otherwise.
33- * The special value 'GIT_OBJ_ANY ' may be passed to let
33+ * The special value 'GIT_OBJECT_ANY ' may be passed to let
3434 * the method guess the object's type.
3535 *
3636 * @param object pointer to the looked-up object
@@ -43,7 +43,7 @@ GIT_EXTERN(int) git_object_lookup(
4343 git_object * * object ,
4444 git_repository * repo ,
4545 const git_oid * id ,
46- git_otype type );
46+ git_object_t type );
4747
4848/**
4949 * Lookup a reference to one of the objects in a repository,
@@ -62,7 +62,7 @@ GIT_EXTERN(int) git_object_lookup(
6262 *
6363 * The 'type' parameter must match the type of the object
6464 * in the odb; the method will fail otherwise.
65- * The special value 'GIT_OBJ_ANY ' may be passed to let
65+ * The special value 'GIT_OBJECT_ANY ' may be passed to let
6666 * the method guess the object's type.
6767 *
6868 * @param object_out pointer where to store the looked-up object
@@ -77,7 +77,7 @@ GIT_EXTERN(int) git_object_lookup_prefix(
7777 git_repository * repo ,
7878 const git_oid * id ,
7979 size_t len ,
80- git_otype type );
80+ git_object_t type );
8181
8282
8383/**
@@ -94,7 +94,7 @@ GIT_EXTERN(int) git_object_lookup_bypath(
9494 git_object * * out ,
9595 const git_object * treeish ,
9696 const char * path ,
97- git_otype type );
97+ git_object_t type );
9898
9999/**
100100 * Get the id (SHA1) of a repository object
@@ -124,7 +124,7 @@ GIT_EXTERN(int) git_object_short_id(git_buf *out, const git_object *obj);
124124 * @param obj the repository object
125125 * @return the object's type
126126 */
127- GIT_EXTERN (git_otype ) git_object_type (const git_object * obj );
127+ GIT_EXTERN (git_object_t ) git_object_type (const git_object * obj );
128128
129129/**
130130 * Get the repository that owns this object
@@ -166,24 +166,24 @@ GIT_EXTERN(void) git_object_free(git_object *object);
166166 * @param type object type to convert.
167167 * @return the corresponding string representation.
168168 */
169- GIT_EXTERN (const char * ) git_object_type2string (git_otype type );
169+ GIT_EXTERN (const char * ) git_object_type2string (git_object_t type );
170170
171171/**
172- * Convert a string object type representation to it's git_otype .
172+ * Convert a string object type representation to it's git_object_t .
173173 *
174174 * @param str the string to convert.
175- * @return the corresponding git_otype .
175+ * @return the corresponding git_object_t .
176176 */
177- GIT_EXTERN (git_otype ) git_object_string2type (const char * str );
177+ GIT_EXTERN (git_object_t ) git_object_string2type (const char * str );
178178
179179/**
180- * Determine if the given git_otype is a valid loose object type.
180+ * Determine if the given git_object_t is a valid loose object type.
181181 *
182182 * @param type object type to test.
183183 * @return true if the type represents a valid loose object type,
184184 * false otherwise.
185185 */
186- GIT_EXTERN (int ) git_object_typeisloose (git_otype type );
186+ GIT_EXTERN (int ) git_object_typeisloose (git_object_t type );
187187
188188/**
189189 * Get the size in bytes for the structure which
@@ -197,7 +197,7 @@ GIT_EXTERN(int) git_object_typeisloose(git_otype type);
197197 * @param type object type to get its size
198198 * @return size in bytes of the object
199199 */
200- GIT_EXTERN (size_t ) git_object__size (git_otype type );
200+ GIT_EXTERN (size_t ) git_object__size (git_object_t type );
201201
202202/**
203203 * Recursively peel an object until an object of the specified type is met.
@@ -206,7 +206,7 @@ GIT_EXTERN(size_t) git_object__size(git_otype type);
206206 * GIT_EINVALIDSPEC will be returned (e.g. trying to peel a blob to a
207207 * tree).
208208 *
209- * If you pass `GIT_OBJ_ANY ` as the target type, then the object will
209+ * If you pass `GIT_OBJECT_ANY ` as the target type, then the object will
210210 * be peeled until the type changes. A tag will be peeled until the
211211 * referenced object is no longer a tag, and a commit will be peeled
212212 * to a tree. Any other object type will return GIT_EINVALIDSPEC.
@@ -219,13 +219,13 @@ GIT_EXTERN(size_t) git_object__size(git_otype type);
219219 *
220220 * @param peeled Pointer to the peeled git_object
221221 * @param object The object to be processed
222- * @param target_type The type of the requested object (a GIT_OBJ_ value)
222+ * @param target_type The type of the requested object (a GIT_OBJECT_ value)
223223 * @return 0 on success, GIT_EINVALIDSPEC, GIT_EPEEL, or an error code
224224 */
225225GIT_EXTERN (int ) git_object_peel (
226226 git_object * * peeled ,
227227 const git_object * object ,
228- git_otype target_type );
228+ git_object_t target_type );
229229
230230/**
231231 * Create an in-memory copy of a Git object. The copy must be
0 commit comments