X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-show-branch.c;h=9f13caa76d3b147993b2cf39397d2f5761cfca22;hb=e61f25f3a6bb5dcbb5ae5f8b4ad26c308982373c;hp=be95930b783f47ade274e281227844e795729f5a;hpb=8457e8ca86ead6536dcd6b2cb6815137505b0c70;p=git.git diff --git a/builtin-show-branch.c b/builtin-show-branch.c index be95930b7..9f13caa76 100644 --- a/builtin-show-branch.c +++ b/builtin-show-branch.c @@ -293,8 +293,8 @@ static void show_one_commit(struct commit *commit, int no_name) struct commit_name *name = commit->util; if (commit->object.parsed) { - pretty_print_commit(CMIT_FMT_ONELINE, commit, - &pretty, 0, NULL, NULL, 0, 0); + struct pretty_print_context ctx = {0}; + pretty_print_commit(CMIT_FMT_ONELINE, commit, &pretty, &ctx); pretty_str = pretty.buf; } if (!prefixcmp(pretty_str, "[PATCH] "))