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.

@param repo Pointer to the submodule repo which was opened @param submodule Submodule to be opened @return 0 on success, <0 if submodule repo could not be opened.

extern (C) nothrow @nogc
int
git_submodule_open

Meta