git_refdb_new

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()

extern (C) nothrow @nogc
int
git_refdb_new

Parameters

out_ libgit2_d.types.git_refdb**

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

repo libgit2_d.types.git_repository*

the repository

Return Value

Type: int

0 or an error code

Meta