@matheusbsbs / matheus-bagliano / commits / 81bd1b2a96
Fork 0

Output the graph columns at the end of the commit message

There is an empty line between the commit message and the diff output. Add the graph columns as prefix of this line. Signed-off-by: Bo Yang <struggleyb.nku@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Bo Yang committed May 26, 2010 at 15:08 UTC 81bd1b2a96ecc12dcc72fc2b22aa5b7691186685
1 file changed +6
log-tree.c
+6
@@ -469,6 +469,12 @@ int log_tree_diff_flush(struct rev_info *opt)
469 int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
470 if ((pch & opt->diffopt.output_format) == pch)
471 printf("---");
472 + if (opt->diffopt.output_prefix) {
473 + struct strbuf *msg = NULL;
474 + msg = opt->diffopt.output_prefix(&opt->diffopt,
475 + opt->diffopt.output_prefix_data);
476 + fwrite(msg->buf, msg->len, 1, stdout);
477 + }
478 putchar('\n');
479 }
480 }