Function: magit-process-yes-or-no-prompt
magit-process-yes-or-no-prompt is a byte-compiled function defined in
magit-process.el.
Signature
(magit-process-yes-or-no-prompt PROCESS STRING)
Documentation
Forward Yes-or-No prompts to the user.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defun magit-process-yes-or-no-prompt (process string)
"Forward Yes-or-No prompts to the user."
(when-let ((beg (string-match magit-process-yes-or-no-prompt-regexp string)))
(process-send-string
process
(if (save-match-data
(let ((max-mini-window-height 30)
(minibuffer-local-map
(magit-process-make-keymap process minibuffer-local-map))
;; In case yes-or-no-p is fset to that, but does
;; not cover use-dialog-box-p and y-or-n-p-read-key.
(y-or-n-p-map
(magit-process-make-keymap process y-or-n-p-map)))
(yes-or-no-p (substring string 0 beg))))
(concat (downcase (match-str 1 string)) "\n")
(concat (downcase (match-str 2 string)) "\n")))))