summaryrefslogtreecommitdiff
path: root/src/repository.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/repository.c')
-rw-r--r--src/repository.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/repository.c b/src/repository.c
index 202fa04ab..fe7b870fe 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -333,6 +333,12 @@ git_otype git_object_type(git_object *obj)
return obj->source.raw.type;
}
+git_repository *git_object_owner(git_object *obj)
+{
+ assert(obj);
+ return obj->repo;
+}
+
git_object *git_object_new(git_repository *repo, git_otype type)
{
git_object *object = NULL;