libgit2

git_object_dup

Version:

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

Signature

int git_object_dup(git_object **dest, git_object *source);

Parameters

In
dest

Pointer to store the copy of the object

In
source

Original object to copy

Returns

int

Versions