summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-02-09 00:22:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2024-02-09 00:22:05 (GMT)
commit25e2039cf6619870bddc61d020bc5ccde85c6617 (patch)
treead0a02f1a0325d26023b92159e314a6ba9cf038d /revision.c
parent173d7746f6c3ee44855be3b6e9aec5457e6174e7 (diff)
parent7854bf49604484a7276b96d312b9daf7d15c7b34 (diff)
downloadgit-25e2039cf6619870bddc61d020bc5ccde85c6617.zip
git-25e2039cf6619870bddc61d020bc5ccde85c6617.tar.gz
git-25e2039cf6619870bddc61d020bc5ccde85c6617.tar.bz2
Merge branch 'rs/i18n-cannot-be-used-together' into maint-2.43
Clean-up code that handles combinations of incompatible options. * rs/i18n-cannot-be-used-together: i18n: factorize even more 'incompatible options' messages
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/revision.c b/revision.c
index 34230b1..2622e98 100644
--- a/revision.c
+++ b/revision.c
@@ -2403,8 +2403,8 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
revs->left_right = 1;
} else if (!strcmp(arg, "--left-only")) {
if (revs->right_only)
- die("--left-only is incompatible with --right-only"
- " or --cherry");
+ die(_("options '%s' and '%s' cannot be used together"),
+ "--left-only", "--right-only/--cherry");
revs->left_only = 1;
} else if (!strcmp(arg, "--right-only")) {
if (revs->left_only)