git_submodule_open

Open the repository for a submodule.

This is a newly opened repository object. The caller is responsible for calling git_repository_free() on it when done. Multiple calls to this function will return distinct libgit2_d.types.git_repository objects. This will only work if the submodule is checked out into the working directory.

extern (C) nothrow @nogc
int
git_submodule_open

Parameters

repo libgit2_d.types.git_repository**

Pointer to the submodule repo which was opened

submodule libgit2_d.types.git_submodule*

Submodule to be opened

Return Value

Type: int

0 on success, <0 if submodule repo could not be opened.

Meta