libgit2

git_refdb_open

Version:

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

Signature

int git_refdb_open(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