teach format-patch to place other authors into in-body "From"
[gitweb.git] / log-tree.c
index 2eb69bcfed096d28bff736deca715458605d902a..67da27f909067132c79fdc028679895e280b7ab1 100644 (file)
@@ -617,6 +617,8 @@ void show_log(struct rev_info *opt)
        ctx.fmt = opt->commit_format;
        ctx.mailmap = opt->mailmap;
        ctx.color = opt->diffopt.use_color;
+       if (opt->from_ident.mail_begin && opt->from_ident.name_begin)
+               ctx.from_ident = &opt->from_ident;
        pretty_print_commit(&ctx, commit, &msgbuf);
 
        if (opt->add_signoff)