Function: magit-stash-read-message-traditional

magit-stash-read-message-traditional is a natively compiled function defined in magit-stash.el.

Signature

(magit-stash-read-message-traditional)

Documentation

Read a message from the minibuffer, to be used for a stash.

If the user confirms the initial-input unmodified, then the abbreviated commit hash and commit summary are appended. The resulting message is what Git would have used.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-stash.el
(defun magit-stash-read-message-traditional ()
  "Read a message from the minibuffer, to be used for a stash.

If the user confirms the initial-input unmodified, then the
abbreviated commit hash and commit summary are appended.
The resulting message is what Git would have used."
  (let* ((default (format "On %s: "
                          (or (magit-get-current-branch) "(no branch)")))
         (input (magit-read-string "Stash message" default)))
    (if (equal input default)
        (concat default (magit-rev-format "%h %s"))
      input)))