git_object_dup

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

extern (C) nothrow @nogc public
int
git_object_dup

Parameters

dest libgit2.types.git_object**

Pointer to store the copy of the object

source libgit2.types.git_object*

Original object to copy

Return Value

Type: int

0 or an error code

Meta