git_odb_read

Read an object from the database.

This method queries all available ODB backends trying to read the given OID.

The returned object is reference counted and internally cached, so it should be closed by the user once it's no longer in use.

extern (C) nothrow @nogc
int
git_odb_read

Parameters

out_ libgit2_d.types.git_odb_object**

pointer where to store the read object

db libgit2_d.types.git_odb*

database to search for the object in.

id const(libgit2_d.oid.git_oid)*

identity of the object to read.

@return - 0 if the object was read; - git_error_code.GIT_ENOTFOUND if the object is not in the database.

Meta