mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
rev-list: --left/right-only are mutually exclusive
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
59c8afdf47
commit
24852d9171
@ -1284,8 +1284,12 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
|
||||
} else if (!strcmp(arg, "--left-right")) {
|
||||
revs->left_right = 1;
|
||||
} else if (!strcmp(arg, "--left-only")) {
|
||||
if (revs->right_only)
|
||||
die("--left-only is incompatible with --right-only");
|
||||
revs->left_only = 1;
|
||||
} else if (!strcmp(arg, "--right-only")) {
|
||||
if (revs->left_only)
|
||||
die("--right-only is incompatible with --left-only");
|
||||
revs->right_only = 1;
|
||||
} else if (!strcmp(arg, "--count")) {
|
||||
revs->count = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user