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, const git_commit_graph_writer_options *options);

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.

In
options

The options for the commit graph writer.

Returns

int

0 or an error code

Versions