libgit2

git_odb_set_commit_graph

Version:

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.

Signature

int git_odb_set_commit_graph(git_odb *odb, git_commit_graph *cgraph);

Parameters

In
odb

object database

In
cgraph

the git commit-graph

Returns

int

0 on success; error code otherwise

Versions