X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fshow-branch.c;h=facc63a79ec0c86fd9df59792cd4f20030af5db1;hb=1f7a2abcc18ec1080905dc5cd59381f7ac1c8111;hp=1abcd9e02e64022e2619db3de40c7b3a731d4479;hpb=6699c959efccc7cb969b87bdf8e0154a0fe9ccc8;p=git.git diff --git a/builtin/show-branch.c b/builtin/show-branch.c index 1abcd9e02..facc63a79 100644 --- a/builtin/show-branch.c +++ b/builtin/show-branch.c @@ -283,8 +283,7 @@ static void show_one_commit(struct commit *commit, int no_name) struct commit_name *name = commit->util; if (commit->object.parsed) { - struct pretty_print_context ctx = {0}; - pretty_print_commit(CMIT_FMT_ONELINE, commit, &pretty, &ctx); + pp_commit_easy(CMIT_FMT_ONELINE, commit, &pretty); pretty_str = pretty.buf; } if (!prefixcmp(pretty_str, "[PATCH] "))