git_repository_odb

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.

extern (C) nothrow @nogc
int
git_repository_odb

Parameters

out_ libgit2_d.types.git_odb**

Pointer to store the loaded ODB

repo libgit2_d.types.git_repository*

A repository object

Return Value

Type: int

0, or an error code

Meta