vendor/libgit2/src/object_api.c in rugged-0.27.9 vs vendor/libgit2/src/object_api.c in rugged-0.27.10
- old
+ new
@@ -18,16 +18,16 @@
/**
* Commit
*/
int git_commit_lookup(git_commit **out, git_repository *repo, const git_oid *id)
{
- return git_object_lookup((git_object **)out, repo, id, GIT_OBJ_COMMIT);
+ return git_object_lookup((git_object **)out, repo, id, GIT_OBJECT_COMMIT);
}
int git_commit_lookup_prefix(git_commit **out, git_repository *repo, const git_oid *id, size_t len)
{
- return git_object_lookup_prefix((git_object **)out, repo, id, len, GIT_OBJ_COMMIT);
+ return git_object_lookup_prefix((git_object **)out, repo, id, len, GIT_OBJECT_COMMIT);
}
void git_commit_free(git_commit *obj)
{
git_object_free((git_object *)obj);
@@ -51,16 +51,16 @@
/**
* Tree
*/
int git_tree_lookup(git_tree **out, git_repository *repo, const git_oid *id)
{
- return git_object_lookup((git_object **)out, repo, id, GIT_OBJ_TREE);
+ return git_object_lookup((git_object **)out, repo, id, GIT_OBJECT_TREE);
}
int git_tree_lookup_prefix(git_tree **out, git_repository *repo, const git_oid *id, size_t len)
{
- return git_object_lookup_prefix((git_object **)out, repo, id, len, GIT_OBJ_TREE);
+ return git_object_lookup_prefix((git_object **)out, repo, id, len, GIT_OBJECT_TREE);
}
void git_tree_free(git_tree *obj)
{
git_object_free((git_object *)obj);
@@ -84,16 +84,16 @@
/**
* Tag
*/
int git_tag_lookup(git_tag **out, git_repository *repo, const git_oid *id)
{
- return git_object_lookup((git_object **)out, repo, id, GIT_OBJ_TAG);
+ return git_object_lookup((git_object **)out, repo, id, GIT_OBJECT_TAG);
}
int git_tag_lookup_prefix(git_tag **out, git_repository *repo, const git_oid *id, size_t len)
{
- return git_object_lookup_prefix((git_object **)out, repo, id, len, GIT_OBJ_TAG);
+ return git_object_lookup_prefix((git_object **)out, repo, id, len, GIT_OBJECT_TAG);
}
void git_tag_free(git_tag *obj)
{
git_object_free((git_object *)obj);
@@ -117,15 +117,15 @@
/**
* Blob
*/
int git_blob_lookup(git_blob **out, git_repository *repo, const git_oid *id)
{
- return git_object_lookup((git_object **)out, repo, id, GIT_OBJ_BLOB);
+ return git_object_lookup((git_object **)out, repo, id, GIT_OBJECT_BLOB);
}
int git_blob_lookup_prefix(git_blob **out, git_repository *repo, const git_oid *id, size_t len)
{
- return git_object_lookup_prefix((git_object **)out, repo, id, len, GIT_OBJ_BLOB);
+ return git_object_lookup_prefix((git_object **)out, repo, id, len, GIT_OBJECT_BLOB);
}
void git_blob_free(git_blob *obj)
{
git_object_free((git_object *)obj);