libgit2

git_commit_graph_open

Version:

Opens a git_commit_graph from a path to an objects directory.

This finds, opens, and validates the commit-graph file.

Signature

int git_commit_graph_open(git_commit_graph **cgraph_out, const char *objects_dir);

Parameters

In
cgraph_out

the git_commit_graph struct to initialize.

const char *
In
objects_dir

the path to a git objects directory.

Returns

int

Zero on success; -1 on failure.

Versions