libgit2

git_repository_refdb

Version:

Get the Reference Database Backend for this repository.

If a custom refsdb has not been set, the default database for the repository will be returned (the one that manipulates loose and packed references in the .git directory).

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

Signature

int git_repository_refdb(git_refdb **out, git_repository *repo);

Parameters

In
out

Pointer to store the loaded refdb

In
repo

A repository object

Returns

int

0, or an error code

Versions