Skip to content

Commit

Permalink
Output the graph columns at the end of the commit message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bo Yang authored and Junio C Hamano committed Jun 1, 2010
1 parent a3c158d commit 81bd1b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions log-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,12 @@ int log_tree_diff_flush(struct rev_info *opt)
int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
if ((pch & opt->diffopt.output_format) == pch)
printf("---");
if (opt->diffopt.output_prefix) {
struct strbuf *msg = NULL;
msg = opt->diffopt.output_prefix(&opt->diffopt,
opt->diffopt.output_prefix_data);
fwrite(msg->buf, msg->len, 1, stdout);
}
putchar('\n');
}
}
Expand Down

0 comments on commit 81bd1b2

Please sign in to comment.