libgit2

git_repository_set_refdb

Version:

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.

Signature

void git_repository_set_refdb(git_repository *repo, git_refdb *refdb);

Parameters

In
repo

A repository object

In
refdb

An refdb object

Versions