libgit2

git_odb__read_packed

Version:

Read an object from the database using only pack files.

If GIT_ENOTFOUND then out->data is set to NULL.

Signature

int git_odb__read_packed(git_rawobj *out, git_odb *db, const git_oid *id);

Parameters

In
out

object descriptor to populate upon reading.

In
db

database to search for the object in.

In
id

identity of the object to read.

Returns

int
  • GIT_SUCCESS if the object was read.
  • GIT_ENOTFOUND if the object is not in the database.

Versions