libgit2

git_odb_new

Version:

Create a new object database with no backends.

Before the ODB can be used for read/writing, a custom database backend must be manually added using git_odb_add_backend()

Signature

int git_odb_new(git_odb **odb);

Parameters

Out
odb

location to store the database pointer, if opened.

Returns

int

0 or an error code

Versions