diff options
Diffstat (limited to 'include/git2/stash.h')
-rw-r--r-- | include/git2/stash.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/git2/stash.h b/include/git2/stash.h index 6ebf89ed1..3ecd9e88d 100644 --- a/include/git2/stash.h +++ b/include/git2/stash.h @@ -102,6 +102,21 @@ GIT_EXTERN(int) git_stash_foreach( stash_cb callback, void *payload); +/** + * Remove a single stashed state from the stash list. + * + * @param repo The owning repository. + * + * @param index The position within the stash list. 0 points to the + * most recent stashed state. + * + * @return 0 on success, or error code + */ + +GIT_EXTERN(int) git_stash_drop( + git_repository *repo, + size_t index); + /** @} */ GIT_END_DECL #endif |