libgit2

git_refdb_set_backend

Version:

Sets the custom backend to an existing reference DB

The git_refdb will take ownership of the git_refdb_backend so you should NOT free it after calling this function.

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