X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-log.c;h=fb5308220dc36ef9324326638dd67756c9930503;hb=aa17bacc14362dbe076c5ea20531a21dea8677a7;hp=7b91c914236a8e196190663fdbc3be4581539791;hpb=c6b53c8684966b3e22d0f26dc981a8b4a0b03ce7;p=git.git diff --git a/builtin-log.c b/builtin-log.c index 7b91c9142..fb5308220 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -1309,8 +1309,9 @@ int cmd_cherry(int argc, const char **argv, const char *prefix) if (verbose) { struct strbuf buf = STRBUF_INIT; + struct pretty_print_context ctx = {0}; pretty_print_commit(CMIT_FMT_ONELINE, commit, - &buf, 0, NULL, NULL, 0, 0); + &buf, &ctx); printf("%c %s %s\n", sign, sha1_to_hex(commit->object.sha1), buf.buf); strbuf_release(&buf);