diff options
author | Santi Béjar <sbejar@gmail.com> | 2008-05-04 18:04:51 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-06 16:50:17 -0700 |
commit | bb1ae3f6fff19b0a1ab1bb6a815d26d39b9f15e6 (patch) | |
tree | d11c7e3846690f745e8c6998d56464f21a23e3c9 /ident.c | |
parent | e83dbe802f24e017f2e3889272a70793c064d984 (diff) | |
download | git-bb1ae3f6fff19b0a1ab1bb6a815d26d39b9f15e6.tar.gz |
commit: Show committer if automatic
To warn the user in case he/she might be using an unintended
committer identity.
Signed-off-by: Santi Béjar <sbejar@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ident.c')
-rw-r--r-- | ident.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -250,6 +250,9 @@ const char *git_author_info(int flag) const char *git_committer_info(int flag) { + if (getenv("GIT_COMMITTER_NAME") && + getenv("GIT_COMMITTER_EMAIL")) + user_ident_explicitly_given = 1; return fmt_ident(getenv("GIT_COMMITTER_NAME"), getenv("GIT_COMMITTER_EMAIL"), getenv("GIT_COMMITTER_DATE"), |