Variable: magit-process-password-prompt-regexps
magit-process-password-prompt-regexps is a customizable variable
defined in magit-process.el.
Value
("^\\(\\(Please e\\|E\\)nter \\(the \\)?p\\|P\\)assphrase.*: ?$" "^\\(\\(Please e\\|E\\)nter \\(the \\)?p\\|P\\)assword: ?$" "^\\(\\(Please e\\|E\\)nter \\(the \\)?p\\|P\\)assword for [\"']?\\(https?://\\)?\\(?99:[^\"']+\\)[\"']?: ?$" "^(\\(?1:[^) ]+\\)) Password for \\(?99:\\1\\): ?$" "^\\(?99:[^']+\\)\\('s\\)? password: ?$" "^Token: ?$" "^Yubikey for .*: ?$" "^Enter PIN for .*: ?$" "Please enter the passphrase for the ssh key" "Please enter the passphrase to unlock the OpenPGP secret key")
Documentation
List of regexps matching password prompts of Git and its subprocesses.
Also see magit-process-find-password-functions.
This variable was added, or its default value changed, in magit version 4.3.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defcustom magit-process-password-prompt-regexps
;; See also history in test `magit-process:password-prompt-regexps'.
'(;; * CLI-prompt for passphrase for key:
"^\\(\\(Please e\\|E\\)nter \\(the \\)?p\\|P\\)assphrase.*: ?$"
;; * Password for something other than a host:
"^\\(\\(Please e\\|E\\)nter \\(the \\)?p\\|P\\)assword: ?$"
;; * Password for [user@]host (which we put in match group 99):
"^\\(\\(Please e\\|E\\)nter \\(the \\)?p\\|P\\)assword for \
[\"']?\\(https?://\\)?\\(?99:[^\"']+\\)[\"']?: ?$"
"^(\\(?1:[^) ]+\\)) Password for \\(?99:\\1\\): ?$" ;#4992
"^\\(?99:[^']+\\)\\('s\\)? password: ?$"
;; * Token for git-credential-manager-core (#4318):
"^Token: ?$"
;; * Secret for card:
"^Yubikey for .*: ?$"
"^Enter PIN for .*: ?$"
;; * Unanchored TUI-prompt for passphrase for key:
"Please enter the passphrase for the ssh key"
"Please enter the passphrase to unlock the OpenPGP secret key")
"List of regexps matching password prompts of Git and its subprocesses.
Also see `magit-process-find-password-functions'."
:package-version '(magit . "4.3.0")
:group 'magit-process
:type '(repeat (regexp)))