From e330a406cd20cf45a6816929155181c37678bc47 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 5 May 2007 15:18:03 -0700 Subject: [PATCH] Fix --boundary output "git log --boundary" incorrectly honoured the option only when "left-right" was enabled. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- log-tree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/log-tree.c b/log-tree.c index 8797aa14c4..dbd06490f9 100644 --- a/log-tree.c +++ b/log-tree.c @@ -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('>'); -- 2.11.4.GIT