Skip to content

Commit 81bd1b2

Browse files
byanggitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a3c158d commit 81bd1b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

log-tree.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,12 @@ int log_tree_diff_flush(struct rev_info *opt)
469469
int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
470470
if ((pch & opt->diffopt.output_format) == pch)
471471
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+
}
472478
putchar('\n');
473479
}
474480
}

0 commit comments

Comments
 (0)