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>
This commit is contained in:
parent
3b559eab55
commit
e330a406cd
@ -218,10 +218,10 @@ void show_log(struct rev_info *opt, const char *sep)
|
|||||||
stdout);
|
stdout);
|
||||||
if (opt->commit_format != CMIT_FMT_ONELINE)
|
if (opt->commit_format != CMIT_FMT_ONELINE)
|
||||||
fputs("commit ", stdout);
|
fputs("commit ", stdout);
|
||||||
if (opt->left_right) {
|
if (commit->object.flags & BOUNDARY)
|
||||||
if (commit->object.flags & BOUNDARY)
|
putchar('-');
|
||||||
putchar('-');
|
else if (opt->left_right) {
|
||||||
else if (commit->object.flags & SYMMETRIC_LEFT)
|
if (commit->object.flags & SYMMETRIC_LEFT)
|
||||||
putchar('<');
|
putchar('<');
|
||||||
else
|
else
|
||||||
putchar('>');
|
putchar('>');
|
||||||
|
Loading…
Reference in New Issue
Block a user