Skip to content

Commit

Permalink
Fix --boundary output
Browse files Browse the repository at this point in the history
"git log --boundary" incorrectly honoured the option only when
"left-right" was enabled.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Linus Torvalds authored and Junio C Hamano committed May 6, 2007
1 parent 3b559ea commit e330a40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions log-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ void show_log(struct rev_info *opt, const char *sep)
stdout);
if (opt->commit_format != CMIT_FMT_ONELINE)
fputs("commit ", stdout);
if (opt->left_right) {
if (commit->object.flags & BOUNDARY)
putchar('-');
else if (commit->object.flags & SYMMETRIC_LEFT)
if (commit->object.flags & BOUNDARY)
putchar('-');
else if (opt->left_right) {
if (commit->object.flags & SYMMETRIC_LEFT)
putchar('<');
else
putchar('>');
Expand Down

0 comments on commit e330a40

Please sign in to comment.