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.

@param dest pointer where to store the copy @param source object to copy @return 0 or an error code

extern (C) nothrow @nogc
int
git_odb_object_dup

Meta