Function: git-commit-get-ident
git-commit-get-ident is a natively 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 /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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: ")))))