git_repository_refdb

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.

extern (C) nothrow @nogc
int
git_repository_refdb

Parameters

out_ libgit2_d.types.git_refdb**

Pointer to store the loaded refdb

repo libgit2_d.types.git_repository*

A repository object

Return Value

Type: int

0, or an error code

Meta