X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-shortlog.c;h=8aa63c7857fb3a704826bf223ddefb3e40f0eaf7;hb=376f39fbea0dfb31402abda878a7b0018f6a6161;hp=4d4a3c82d6209ce3ec897dad0c69d58a329b4303;hpb=e4d1afbcf2e39a997ae90befd629ee53e444c4c9;p=git.git diff --git a/builtin-shortlog.c b/builtin-shortlog.c index 4d4a3c82d..8aa63c785 100644 --- a/builtin-shortlog.c +++ b/builtin-shortlog.c @@ -158,9 +158,12 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit) sha1_to_hex(commit->object.sha1)); if (log->user_format) { struct strbuf buf = STRBUF_INIT; - - pretty_print_commit(CMIT_FMT_USERFORMAT, commit, &buf, - DEFAULT_ABBREV, "", "", DATE_NORMAL, 0); + struct pretty_print_context ctx = {0}; + ctx.abbrev = DEFAULT_ABBREV; + ctx.subject = ""; + ctx.after_subject = ""; + ctx.date_mode = DATE_NORMAL; + pretty_print_commit(CMIT_FMT_USERFORMAT, commit, &buf, &ctx); insert_one_record(log, author, buf.buf); strbuf_release(&buf); return;