summaryrefslogtreecommitdiff
path: root/builtin-shortlog.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-10-30 20:18:31 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-10-30 20:18:31 -0700
commit5f809ff50921bee44bbf88c49056e7d145c0c35f (patch)
tree451ba24442900b54c90264056998effaf25cd4eb /builtin-shortlog.c
parentMerge branch 'js/diff-verbose-submodule' (diff)
parentstash list: drop the default limit of 10 stashes (diff)
downloadtgif-5f809ff50921bee44bbf88c49056e7d145c0c35f.tar.xz
fixup tr/stash-format merge
Diffstat (limited to 'builtin-shortlog.c')
-rw-r--r--builtin-shortlog.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index 4d4a3c82d6..8aa63c7857 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;