libgit2

git_repository_set_odb

Version:

Set the Object Database for this repository

The ODB will be used for all object-related operations involving this repository.

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

Signature

void git_repository_set_odb(git_repository *repo, git_odb *odb);

Parameters

In
repo

A repository object

In
odb

An ODB object

Versions