git_repository_set_refdb

Set the Reference Database Backend for this repository

The refdb will be used for all reference related operations involving this repository.

The repository will keep a reference to the refdb; the user must still free the refdb object after setting it to the repository, or it will leak.

package extern (C) nothrow @nogc
int
git_repository_set_refdb

Parameters

repo libgit2_d.types.git_repository*

A repository object

refdb libgit2_d.types.git_refdb*

An refdb object

Return Value

Type: int

0 on success, or an error code

Meta