i18n: refactor "foo and bar are mutually exclusive"
Use static strings for constant parts of the sentences. They are all 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
2ae0a9cb82
commit
43ea635c35
@ -1943,9 +1943,9 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
|
||||
numbered = 0;
|
||||
|
||||
if (numbered && keep_subject)
|
||||
die(_("-n and -k are mutually exclusive"));
|
||||
die(_("options '%s' and '%s' cannot be used together"), "-n", "-k");
|
||||
if (keep_subject && subject_prefix)
|
||||
die(_("--subject-prefix/--rfc and -k are mutually exclusive"));
|
||||
die(_("options '%s' and '%s' cannot be used together"), "--subject-prefix/--rfc", "-k");
|
||||
rev.preserve_subject = keep_subject;
|
||||
|
||||
argc = setup_revisions(argc, argv, &rev, &s_r_opt);
|
||||
|
Reference in New Issue
Block a user