libgit2

git_indexer_new

Version:

Create a new indexer instance

Signature

int git_indexer_new(git_indexer **out, const char *path, git_indexer_options *opts);

Parameters

In
out

where to store the indexer instance

const char *
In
path

to the directory where the packfile should be stored

In
opts

the options to create the indexer with

Returns

int

0 or an error code.

Versions