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 **out);

Parameters

In
out

location to store the database pointer, if opened. Set to NULL if the open failed.

Returns

int

GIT_SUCCESS or an error code

Versions