libgit2

git_index_remove_directory

Version:

Remove all entries from the index under a given directory

Signature

int git_index_remove_directory(git_index *index, const char *dir, int stage);

Parameters

In
index

an existing index object

const char *
In
dir

container directory path

int
In
stage

stage to search

Returns

int

0 or an error code

Versions