Skip to content

Commit

Permalink
mailmap: add mailmap structure to rev_info and pp
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
apelisse authored and gitster committed Jan 10, 2013
1 parent ea02ffa commit 0e2913b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions commit.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions log-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions revision.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e2913b

Please sign in to comment.