X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fcommit.c;fp=builtin%2Fcommit.c;h=511d4901d55b5812968d48db89ee2b250e86ddb3;hb=1a5296cb92691c5656bbc6aacaf49ca31b1ee8c0;hp=0e3ae3c11d7d3a582f3cb549d7d17aa1aea67d56;hpb=cecff3a45b4660f47a58746eae42b6ddb58e1919;p=git.git diff --git a/builtin/commit.c b/builtin/commit.c index 0e3ae3c11..511d4901d 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1168,13 +1168,11 @@ static void print_summary(const char *prefix, const unsigned char *sha1) initial_commit ? " (root-commit)" : ""); if (!log_tree_commit(&rev, commit)) { - struct pretty_print_context ctx = {0}; - struct strbuf buf = STRBUF_INIT; - ctx.date_mode = DATE_NORMAL; - format_commit_message(commit, format.buf + 7, &buf, &ctx); - printf("%s\n", buf.buf); - strbuf_release(&buf); + rev.always_show_header = 1; + rev.use_terminator = 1; + log_tree_commit(&rev, commit); } + strbuf_release(&format); }