diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-03-07 03:59:53 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-07 03:59:53 +0300 |
commit | 4e021dc28e71f9d820f7cf18567d9a86df326753 (patch) | |
tree | 7d3b0cf7a0da8c1ad7d77fcf72b9ecbe5dd1319e /builtin | |
parent | 42977bf5c7306e4c2dded5353f39cf087cf23a1f (diff) | |
parent | 39ab4d0951ba64edcfae7809740715991b44fa6d (diff) |
Merge branch 'wh/author-committer-ident-config'
Four new configuration variables {author,committer}.{name,email}
have been introduced to override user.{name,email} in more specific
cases.
* wh/author-committer-ident-config:
config: allow giving separate author and committer idents
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/am.c | 1 | ||||
-rw-r--r-- | builtin/commit.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c index 58a2aef28b..cd051fecdf 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -1579,6 +1579,7 @@ static void do_commit(const struct am_state *state) } author = fmt_ident(state->author_name, state->author_email, + WANT_AUTHOR_IDENT, state->ignore_date ? NULL : state->author_date, IDENT_STRICT); diff --git a/builtin/commit.c b/builtin/commit.c index 2986553d5f..8d7a613fda 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -609,7 +609,8 @@ static void determine_author_info(struct strbuf *author_ident) set_ident_var(&date, strbuf_detach(&date_buf, NULL)); } - strbuf_addstr(author_ident, fmt_ident(name, email, date, IDENT_STRICT)); + strbuf_addstr(author_ident, fmt_ident(name, email, WANT_AUTHOR_IDENT, date, + IDENT_STRICT)); assert_split_ident(&author, author_ident); export_one("GIT_AUTHOR_NAME", author.name_begin, author.name_end, 0); export_one("GIT_AUTHOR_EMAIL", author.mail_begin, author.mail_end, 0); |