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.
0 or an error code