libgit2

git_refdb_backend_fs

Version:

Constructors for default filesystem-based refdb backend

Under normal usage, this is called for you when the repository is opened / created, but you can use this to explicitly construct a filesystem refdb backend for a repository.

Signature

int git_refdb_backend_fs(git_refdb_backend **backend_out, git_repository *repo);

Parameters

In
backend_out

Output pointer to the git_refdb_backend object

In
repo

Git repository to access

Returns

int

0 on success, < 0 error code on failure

Versions