Function: magit--format-prompt

magit--format-prompt is a natively compiled function defined in magit-base.el.

Signature

(magit--format-prompt PROMPT DEFAULT)

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-base.el
(defun magit--format-prompt (prompt default)
  (format-prompt (if (string-suffix-p ": " prompt)
                     (substring prompt 0 -2)
                   prompt)
                 (and (funcall magit-completing-read-default-prompt-predicate)
                      default)))