libgit2

git_remote_dup

Version:

Create a copy of an existing remote. All internal strings are also duplicated. Callbacks are not duplicated.

Call git_remote_free to free the data.

Signature

int git_remote_dup(git_remote **dest, git_remote *source);

Parameters

In
dest

pointer where to store the copy

In
source

object to copy

Returns

int

0 or an error code

Versions