libgit2

git_index_new

Version:

Create an in-memory index object.

This index object cannot be read/written to the filesystem, but may be used to perform in-memory index operations.

The index must be freed once it's no longer in use.

Signature

int git_index_new(git_index **index_out);

Parameters

In
index_out

the pointer for the new index

Returns

int

0 or an error code

Versions