git_odb_object_dup

Create a copy of an odb_object

The returned copy must be manually freed with git_odb_object_free. Note that because of an implementation detail, the returned copy will be the same pointer as source: the object is internally refcounted, so the copy still needs to be freed twice.

extern (C) nothrow @nogc
int
git_odb_object_dup

Parameters

dest libgit2_d.types.git_odb_object**

pointer where to store the copy

source libgit2_d.types.git_odb_object*

object to copy

Return Value

Type: int

0 or an error code

Meta