Function: magit-process-username-prompt
magit-process-username-prompt is a natively compiled function defined
in magit-process.el.
Signature
(magit-process-username-prompt PROCESS STRING)
Documentation
Forward username prompts to the user.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-process.el
(defun magit-process-username-prompt (process string)
"Forward username prompts to the user."
(when-let ((prompt (magit-process-match-prompt
magit-process-username-prompt-regexps string)))
(process-send-string
process
(let ((minibuffer-local-map
(magit-process-make-keymap process minibuffer-local-map)))
(concat (read-string prompt nil nil (user-login-name)) "\n")))))