libgit2

git_object_owner

Version:

Get the repository that owns this object

Freeing or calling git_repository_close on the returned pointer will invalidate the actual object.

Any other operation may be run on the repository without affecting the object.

Signature

git_repository *git_object_owner(const git_object *obj);

Parameters

In
obj

the object

Returns

the repository who owns this object

Versions