Function: magit-stash-read-message
magit-stash-read-message is a byte-compiled function defined in
magit-stash.el.
Signature
(magit-stash-read-message)
Documentation
Read a message from the minibuffer, to be used for a stash.
The message that Git would have picked, is available as the
default (used when the user enters the empty string) and as
the first future history element. The second future history
element is just "On BRANCH: ". Future history elements can
be accessed using M-n (next-history-element)).
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-stash.el
(defun magit-stash-read-message ()
"Read a message from the minibuffer, to be used for a stash.
The message that Git would have picked, is available as the
default (used when the user enters the empty string) and as
the first future history element. The second future history
element is just \"On BRANCH: \". Future history elements can
be accessed using \\<minibuffer-local-map>\\[next-history-element])."
(let ((branch (or (magit-get-current-branch) "(no branch)"))
(ellipsis (magit--ellipsis)))
(read-string (format "Stash message (default: On%s:%s): " ellipsis ellipsis)
nil nil
(list (format "On %s: %s" branch (magit-rev-format "%h %s"))
(format "On %s: " branch)))))