@matheusbsbs / matheus-bagliano / commits / e330a406cd
Fork 0

Fix --boundary output

"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>

Linus Torvalds committed May 5, 2007 at 15:18 UTC e330a406cd20cf45a6816929155181c37678bc47
1 file changed +4 -4
log-tree.c
+4 -4
@@ -218,10 +218,10 @@ void show_log(struct rev_info *opt, const char *sep)
218 stdout);
219 if (opt->commit_format != CMIT_FMT_ONELINE)
220 fputs("commit ", stdout);
221 - if (opt->left_right) {
222 - if (commit->object.flags & BOUNDARY)
223 - putchar('-');
224 - else if (commit->object.flags & SYMMETRIC_LEFT)
221 + if (commit->object.flags & BOUNDARY)
222 + putchar('-');
223 + else if (opt->left_right) {
224 + if (commit->object.flags & SYMMETRIC_LEFT)
225 putchar('<');
226 else
227 putchar('>');