summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59c8afd)
raw | patch | inline | side by side (parent: 59c8afd)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 22 Feb 2011 00:58:37 +0000 (16:58 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 22 Feb 2011 01:06:27 +0000 (17:06 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c | patch | blob | history |
diff --git a/revision.c b/revision.c
index 0681c7c309a81f9addef2a8d6bba7687dea637e7..1fcaeb79024665910099ea4cd377ed5cd9a5a707 100644 (file)
--- a/revision.c
+++ b/revision.c
@@ -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;