summaryrefslogtreecommitdiff
path: root/include/git2/stash.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-10-08 20:07:55 +0200
committernulltoken <emeric.fermas@gmail.com>2012-10-26 22:11:15 +0200
commite4c64cf2aa77a97824db4d2700ca507278ef857d (patch)
treea6d3a4dfc7cf11099129da13de34c8af27ace49e /include/git2/stash.h
parent233884131d123432d2e1ad7236ad3c6ef7b2b518 (diff)
downloadlibgit2-e4c64cf2aa77a97824db4d2700ca507278ef857d.tar.gz
stash: add git_stash_drop()
Diffstat (limited to 'include/git2/stash.h')
-rw-r--r--include/git2/stash.h15
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