libgit2

odb

Version:
Git object database routines

Objects

An open object database handle

An object read from the ODB

Functions

Create a new object database with no backends

Create a new object database and automatically add the two default backends:

Add a custom backend to an existing Object DB

Add a custom backend to an existing Object DB; this backend will work as an alternate

Close an open object database

Read an object from the database

Read an object from the database, given a prefix of its identifier

Read the header of an object from the database, without reading its full contents

Determine if the given object can be found in the object database

Write an object directly into the ODB

Open a stream to write an object into the ODB

Open a stream to read an object from the ODB

Determine the object-ID (sha1 hash) of a data buffer

Read a file from disk and fill a git_oid with the object id that the file would have if it were written to the Object Database as an object of the given type to git.git's git hash-object without the -w flag.

Close an ODB object

Return the OID of an ODB object

Return the data of an ODB object

Return the size of an ODB object

Return the type of an ODB object