git_commit_graph_open

Opens a git_commit_graph from a path to an objects directory.

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

extern (C) nothrow @nogc
int
git_commit_graph_open

Parameters

cgraph_out libgit2.types.git_commit_graph**

the git_commit_graph struct to initialize.

objects_dir const(char)*

the path to a git objects directory.

Return Value

Type: int

Zero on success; -1 on failure.

Meta