libgit2

git_repository_odb

Version:

Get the Object Database for this repository.

If a custom ODB has not been set, the default database for the repository will be returned (the one located in .git/objects).

The ODB must be freed once it's no longer being used by the user.

Signature

int git_repository_odb(git_odb **out, git_repository *repo);

Parameters

In
out

Pointer to store the loaded ODB

In
repo

A repository object

Returns

int

GIT_SUCCESS, or an error code

Versions