diff options
author | Antoine Pelisse <apelisse@gmail.com> | 2013-01-05 22:26:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-10 12:33:08 -0800 |
commit | 0e2913b042825cb3ff6798245f9224f41183d159 (patch) | |
tree | 0bc20b61098a36a7cb88031f3883a2c99fb8bf11 | |
parent | ea02ffa38571084007eb7c63f650d0011e44a3dd (diff) | |
download | git-0e2913b042825cb3ff6798245f9224f41183d159.tar.gz |
mailmap: add mailmap structure to rev_info and pp
Pass a mailmap from rev_info to pretty_print_context to so that the
pretty printer can use rewritten name and email address when showing
commits.
Signed-off-by: Antoine Pelisse <apelisse@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | commit.h | 1 | ||||
-rw-r--r-- | log-tree.c | 1 | ||||
-rw-r--r-- | revision.h | 1 |
3 files changed, 3 insertions, 0 deletions
@@ -89,6 +89,7 @@ struct pretty_print_context { char *notes_message; struct reflog_walk_info *reflog_info; const char *output_encoding; + struct string_list *mailmap; }; struct userformat_want { diff --git a/log-tree.c b/log-tree.c index 4f86defe32..92254fd493 100644 --- a/log-tree.c +++ b/log-tree.c @@ -671,6 +671,7 @@ void show_log(struct rev_info *opt) ctx.preserve_subject = opt->preserve_subject; ctx.reflog_info = opt->reflog_info; ctx.fmt = opt->commit_format; + ctx.mailmap = opt->mailmap; pretty_print_commit(&ctx, commit, &msgbuf); if (opt->add_signoff) diff --git a/revision.h b/revision.h index 059bfff812..83a79f5815 100644 --- a/revision.h +++ b/revision.h @@ -143,6 +143,7 @@ struct rev_info { const char *subject_prefix; int no_inline; int show_log_size; + struct string_list *mailmap; /* Filter by commit log message */ struct grep_opt grep_filter; |