libgit2

git_refdb_set_backend

Version:

Sets the custom backend to an existing reference DB

Read <refdb _backends.h> for more information.

Signature

int git_refdb_set_backend(git_refdb *refdb, git_refdb_backend *backend);

Parameters

In
refdb

database to add the backend to

In
backend

pointer to a git_refdb_backend instance

Returns

int

0 on success; error code otherwise

Versions