git_refdb_open

Create a new reference database and automatically add the default backends:

- git_refdb_dir: read and write loose and packed refs from disk, assuming the repository dir as the folder

extern (C) nothrow @nogc
int
git_refdb_open

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