git_submodule_clone

Perform the clone step for a newly created submodule.

This performs the necessary git_clone to setup a newly-created submodule.

extern (C) nothrow @nogc public
int
git_submodule_clone

Parameters

out_ libgit2.types.git_repository**

The newly created repository object. Optional.

submodule libgit2.types.git_submodule*

The submodule currently waiting for its clone.

opts const(.git_submodule_update_options)*

The options to use.

Return Value

Type: int

0 on success, -1 on other errors (see git_clone).

Meta