libgit2

git_refdb_new

Version:

Create a new reference database with no backends.

Before the Ref DB can be used for read/writing, a custom database backend must be manually set using git_refdb_set_backend()

Signature

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

Parameters

In
out

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

In
repo

the repository

Returns

int

0 or an error code

Versions