branch: elpa/magit
commit 9cbdaf5ddfe825c04ffa306dde6bdfea9ab6dff3
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-stash-clear: Use drop-stashes confirmation type
Closes #5500.
---
lisp/magit-stash.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/magit-stash.el b/lisp/magit-stash.el
index b458b900e2e..c824b038961 100644
--- a/lisp/magit-stash.el
+++ b/lisp/magit-stash.el
@@ -386,7 +386,8 @@ When the region is active offer to drop all contained
stashes."
(defun magit-stash-clear (ref)
"Remove all stashes saved in REF's reflog by deleting REF."
(interactive (let ((ref (or (magit-section-value-if 'stashes) "refs/stash")))
- (magit-confirm t (list "Drop all stashes in %s" ref))
+ (magit-confirm 'drop-stashes
+ (list "Drop all stashes in %s" ref))
(list ref)))
(magit-run-git "update-ref" "-d" ref))