git_repository_set_odb

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.

package extern (C) nothrow @nogc
int
git_repository_set_odb

Parameters

repo libgit2_d.types.git_repository*

A repository object

odb libgit2_d.types.git_odb*

An ODB object

Return Value

Type: int

0 on success, or an error code

Meta