git_submodule_repo_init

Set up the subrepository for a submodule in preparation for clone.

This function can be called to init and set up a submodule repository from a submodule in preparation to clone it from its remote.

extern (C) nothrow @nogc
int
git_submodule_repo_init

Parameters

out_ libgit2_d.types.git_repository**

Output pointer to the created git repository.

sm const(libgit2_d.types.git_submodule)*

The submodule to create a new subrepository from.

Should the workdir contain a gitlink to the repo in .git/modules vs. repo directly in workdir.

Return Value

Type: int

0 on success, <0 on failure.

Meta