Function: magit-stash-clear
magit-stash-clear is an autoloaded, interactive and byte-compiled
function defined in magit-stash.el.
Signature
(magit-stash-clear REF)
Documentation
Remove all stashes saved in REF's reflog by deleting REF.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-stash.el
;;;###autoload
(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 'drop-stashes
(list "Drop all stashes in %s" ref))
(list ref)))
(magit-run-git "update-ref" "-d" ref))