git_index_clear

Clear the contents (all the entries) of an index object.

This clears the index object in memory; changes must be explicitly written to disk for them to take effect persistently.

extern (C) nothrow @nogc public
int
git_index_clear

Parameters

index libgit2.types.git_index*

an existing index object

Return Value

Type: int

0 on success, error code < 0 on failure

Meta