X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-rev-list.c;h=857742a14f82e049c5b9e8b234dae9e9e1a7dc30;hb=5c38ea31f345d08f37685cf4f50c599a7af56bcf;hp=facaff288dba2789f0637c4554bd130440e2a3da;hpb=141201d124f3663a98e0f362c1af7f5f7b58dabb;p=git.git diff --git a/builtin-rev-list.c b/builtin-rev-list.c index facaff288..857742a14 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -100,15 +100,14 @@ static void show_commit(struct commit *commit) children = children->next; } } - show_decorations(commit); + show_decorations(&revs, commit); if (revs.commit_format == CMIT_FMT_ONELINE) putchar(' '); else putchar('\n'); if (revs.verbose_header && commit->buffer) { - struct strbuf buf; - strbuf_init(&buf, 0); + struct strbuf buf = STRBUF_INIT; pretty_print_commit(revs.commit_format, commit, &buf, revs.abbrev, NULL, NULL, revs.date_mode, 0);