libgit2

git_commit_graph_writer_add_index_file

Version:

Add an .idx file (associated to a packfile) to the writer.

Signature

int git_commit_graph_writer_add_index_file(git_commit_graph_writer *w, git_repository *repo, const char *idx_path);

Parameters

In
w

The writer.

In
repo

The repository that owns the .idx file.

const char *
In
idx_path

The path of an .idx file.

Returns

int

0 or an error code

Versions