From: Linus Torvalds Date: Sat, 5 May 2007 22:18:03 +0000 (-0700) Subject: Fix --boundary output X-Git-Tag: v1.5.2-rc2~1^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e330a406cd20cf45a6816929155181c37678bc47;p=git.git 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 --- diff --git a/log-tree.c b/log-tree.c index 8797aa14c..dbd06490f 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('>');