Function: git-commit-get-ident
git-commit-get-ident is a byte-compiled function defined in
git-commit.el.
Signature
(git-commit-get-ident &optional PROMPT)
Documentation
Return name and email of the user or read another name and email.
If PROMPT and current-prefix-arg are both non-nil, read name
and email using git-commit-read-ident (which see), otherwise
return name and email of the current user (you).
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-commit.el
(defun git-commit-get-ident (&optional prompt)
"Return name and email of the user or read another name and email.
If PROMPT and `current-prefix-arg' are both non-nil, read name
and email using `git-commit-read-ident' (which see), otherwise
return name and email of the current user (you)."
(if (and prompt current-prefix-arg)
(git-commit-read-ident prompt)
(list (or (getenv "GIT_AUTHOR_NAME")
(getenv "GIT_COMMITTER_NAME")
(with-demoted-errors "Error running 'git config user.name': %S"
(magit-get "user.name"))
user-full-name
(read-string "Name: "))
(or (getenv "GIT_AUTHOR_EMAIL")
(getenv "GIT_COMMITTER_EMAIL")
(getenv "EMAIL")
(with-demoted-errors "Error running 'git config user.email': %S"
(magit-get "user.email"))
(read-string "Email: ")))))