libgit2

git_index_new_ext

Version:

Create an in-memory index object.

Signature

int git_index_new_ext(git_index **index_out, const git_index_options *opts);

Parameters

In
index_out

the pointer for the new index

In
opts

the options for opening the index, or NULL

Returns

int

0 or an error code

Versions