clean up calling conventions for pretty.c functions
[gitweb.git] / log-tree.c
index b46ed3baef7d9d9971a3886d700059217fbe974a..0d8cc7af2ccbe4f8d0ca903072e5caa0b65542df 100644 (file)
@@ -505,7 +505,8 @@ void show_log(struct rev_info *opt)
        ctx.abbrev = opt->diffopt.abbrev;
        ctx.after_subject = extra_headers;
        ctx.reflog_info = opt->reflog_info;
-       pretty_print_commit(opt->commit_format, commit, &msgbuf, &ctx);
+       ctx.fmt = opt->commit_format;
+       pretty_print_commit(&ctx, commit, &msgbuf);
 
        if (opt->add_signoff)
                append_signoff(&msgbuf, opt->add_signoff);