Function: magit-process-git-credential-manager-core
magit-process-git-credential-manager-core is a byte-compiled function
defined in magit-process.el.
Signature
(magit-process-git-credential-manager-core PROCESS STRING)
Documentation
Authenticate using git-credential-manager-core.
To use this function add it to the appropriate hook
(add-hook 'magit-process-prompt-functions
'magit-process-git-credential-manager-core)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defun magit-process-git-credential-manager-core (process string)
"Authenticate using `git-credential-manager-core'.
To use this function add it to the appropriate hook
(add-hook \\='magit-process-prompt-functions
\\='magit-process-git-credential-manager-core)"
(and (string-match "^option (enter for default): $" string)
(progn
(magit-process-buffer)
(let ((option (format "%c\n"
(read-char-choice "Option: " '(?\r ?\j ?1 ?2)))))
(insert-before-markers-and-inherit option)
(process-send-string process option)))))