git_index_remove_all

Remove all matching index entries.

If you provide a callback function, it will be invoked on each matching item in the index immediately *before* it is removed. Return 0 to remove the item, > 0 to skip the item, and < 0 to abort the scan.

extern (C) nothrow @nogc public
int
git_index_remove_all

Parameters

index libgit2.types.git_index*

An existing index object

pathspec const(libgit2.strarray.git_strarray)*

array of path patterns

callback .git_index_matched_path_cb

notification callback for each removed path (also gets index of matching pathspec entry); can be null; return 0 to add, >0 to skip, <0 to abort scan.

payload void*

payload passed through to callback function

Return Value

Type: int

0 on success, negative callback return value, or error code

Meta