summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc6f19f)
raw | patch | inline | side by side (parent: fc6f19f)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 17 Jan 2010 21:59:36 +0000 (13:59 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 17 Jan 2010 21:59:36 +0000 (13:59 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | patch | blob | history | |
cache.h | patch | blob | history | |
ident.c | patch | blob | history |
diff --git a/builtin-commit.c b/builtin-commit.c
index 7f61e87ebdcdcbf79b21631ced97bb4facbecf9f..29dc3df786831465e30dcbcec536de9e7367423b 100644 (file)
--- a/builtin-commit.c
+++ b/builtin-commit.c
author_ident);
free(author_ident);
- if (!user_ident_explicitly_given)
+ if (!user_ident_sufficiently_given())
fprintf(fp,
"%s"
"# Committer: %s\n",
strbuf_addstr(&format, "\n Author: ");
strbuf_addbuf_percentquote(&format, &author_ident);
}
- if (!user_ident_explicitly_given) {
+ if (!user_ident_sufficiently_given()) {
strbuf_addstr(&format, "\n Committer: ");
strbuf_addbuf_percentquote(&format, &committer_ident);
if (advice_implicit_identity) {
index bf468e52352c193b355222b718d9f5125c26052c..63e0701deec71218862673b0fe8cfb0fcbc19a6d 100644 (file)
--- a/cache.h
+++ b/cache.h
extern char git_default_email[MAX_GITNAME];
extern char git_default_name[MAX_GITNAME];
extern int user_ident_explicitly_given;
+extern int user_ident_sufficiently_given(void);
extern const char *git_commit_encoding;
extern const char *git_log_output_encoding;