pretty: add pp_commit_easy function for simple callers
[git.git] / builtin / show-branch.c
index da695815e26c281cbacfbf865dfa72da44df9f19..a5fc2aa88426b584945b132a21d2cc97176a0993 100644 (file)
@@ -293,8 +293,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] "))