libgit2

git_commit_graph_writer_new

Version:

Create a new writer for commit-graph files.

Signature

int git_commit_graph_writer_new(git_commit_graph_writer **out, const char *objects_info_dir);

Parameters

In
out

Location to store the writer pointer.

const char *
In
objects_info_dir

The objects/info directory. The commit-graph file will be written in this directory.

Returns

int

0 or an error code

Versions