Skip to content

Commit e330a40

Browse files
torvaldsJunio C Hamano
authored andcommitted
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>
1 parent 3b559ea commit e330a40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

log-tree.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,10 @@ void show_log(struct rev_info *opt, const char *sep)
218218
stdout);
219219
if (opt->commit_format != CMIT_FMT_ONELINE)
220220
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)
225225
putchar('<');
226226
else
227227
putchar('>');

0 commit comments

Comments
 (0)