git_submodule_owner

Get the containing repository for a submodule.

This returns a pointer to the repository that contains the submodule. This is a just a reference to the repository that was passed to the original git_submodule_lookup() call, so if that repository has been freed, then this may be a dangling reference.

extern (C) nothrow @nogc
git_submodule_owner

Parameters

submodule libgit2_d.types.git_submodule*

Pointer to submodule object

Return Value

Type: libgit2_d.types.git_repository*

Pointer to libgit2_d.types.git_repository

Meta