diff options
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/index.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/index.h b/include/git2/index.h index fa9a19785..1d21403ad 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -313,6 +313,17 @@ GIT_EXTERN(const git_index_entry *) git_index_get_bypath( GIT_EXTERN(int) git_index_remove(git_index *index, const char *path, int stage); /** + * Remove all entries from the index under a given directory + * + * @param index an existing index object + * @param dir container directory path + * @param stage stage to search + * @return 0 or an error code + */ +GIT_EXTERN(int) git_index_remove_directory( + git_index *index, const char *dir, int stage); + +/** * Add or update an index entry from an in-memory struct * * If a previous index entry exists that has the same path and stage |