i18n: refactor "%s, %s and %s are mutually exclusive"
Use placeholders for constant tokens. The strings are turned into "cannot be used together" Signed-off-by: Jean-Noël Avila <jn.avila@free.fr> Reviewed-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
43ea635c35
commit
c488182903
2
diff.c
2
diff.c
@ -4642,7 +4642,7 @@ void diff_setup_done(struct diff_options *options)
|
||||
die(_("--name-only, --name-status, --check and -s are mutually exclusive"));
|
||||
|
||||
if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK))
|
||||
die(_("-G, -S and --find-object are mutually exclusive"));
|
||||
die(_("options '%s', '%s', and '%s' cannot be used together"), "-G", "-S", "--find-object");
|
||||
|
||||
if (HAS_MULTI_BITS(options->pickaxe_opts & DIFF_PICKAXE_KINDS_G_REGEX_MASK))
|
||||
die(_("-G and --pickaxe-regex are mutually exclusive, use --pickaxe-regex with -S"));
|
||||
|
Reference in New Issue
Block a user