libgit2

git_midx_writer_new

Version:

Create a new writer for multi-pack-index files.

Signature

int git_midx_writer_new(git_midx_writer **out, const char *pack_dir);

Parameters

In
out

location to store the writer pointer.

const char *
In
pack_dir

the directory where the .pack and .idx files are. The multi-pack-index file will be written in this directory, too.

Returns

int

0 or an error code

Versions