git_refdb_set_backend

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.

package extern (C) nothrow @nogc
int
git_refdb_set_backend

Parameters

refdb libgit2_d.types.git_refdb*

database to add the backend to

backend .git_refdb_backend*

pointer to a git_refdb_backend instance

Return Value

Type: int

0 on success; error code otherwise

Meta