libgit2

git_index_remove

Version:

Remove an entry from the index

Signature

int git_index_remove(git_index *index, const char *path, int stage);

Parameters

In
index

an existing index object

const char *
In
path

path to search

int
In
stage

stage to search

Returns

int

0 or an error code

Versions