Variable: magit-process-yes-or-no-prompt-regexp
magit-process-yes-or-no-prompt-regexp is a customizable variable
defined in magit-process.el.
Value
" [([]\\([Yy]\\(?:es\\)?\\)[/|]\\([Nn]o?\\)\\(?:/\\[fingerprint\\]\\)?[])] ?[?:]? ?$"
Documentation
Regexp matching Yes-or-No prompts of Git and its subprocesses.
This variable was added, or its default value changed, in magit version 2.1.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defcustom magit-process-yes-or-no-prompt-regexp
(eval-when-compile
(concat " [([]"
"\\([Yy]\\(?:es\\)?\\)"
"[/|]"
"\\([Nn]o?\\)"
;; OpenSSH v8 prints this. See #3969.
"\\(?:/\\[fingerprint\\]\\)?"
"[])] ?[?:]? ?$"))
"Regexp matching Yes-or-No prompts of Git and its subprocesses."
:package-version '(magit . "2.1.0")
:group 'magit-process
:type 'regexp)