Skip to content

Commit

Permalink
log --graph --stat: three-dash separator should come after graph lines
Browse files Browse the repository at this point in the history
Output from "git log --graph --stat -p" emits the three-dash separator
line before the graph that shows ancestry lines.  The separator should
come after the ancestry lines just like all the other output.

Signed-off-by: Lucian Poston <lucian.poston@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Lucian Poston authored and Junio C Hamano committed Mar 20, 2012
1 parent d909e07 commit aea69a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions log-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,14 +570,15 @@ int log_tree_diff_flush(struct rev_info *opt)
opt->verbose_header &&
opt->commit_format != CMIT_FMT_ONELINE) {
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);
}
if ((pch & opt->diffopt.output_format) == pch) {
printf("---");
}
putchar('\n');
}
}
Expand Down

0 comments on commit aea69a0

Please sign in to comment.