git_odb_set_commit_graph

Set the git commit-graph for the ODB.

After a successful call, the ownership of the cgraph parameter will be transferred to libgit2, and the caller should not free it.

The commit-graph can also be unset by explicitly passing null as the cgraph parameter.

extern (C) nothrow @nogc public
int
git_odb_set_commit_graph

Parameters

odb libgit2.types.git_odb*

object database

cgraph libgit2.types.git_commit_graph*

the git commit-graph

Return Value

Type: int

0 on success; error code otherwise

Meta