libgit2

git_submodule_dup

Version:

Create an in-memory copy of a submodule. The copy must be explicitly free'd or it will leak.

Signature

int git_submodule_dup(git_submodule **out, git_submodule *source);

Parameters

In
out

Pointer to store the copy of the submodule.

In
source

Original submodule to copy.

Returns

int

0

Versions