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
@ -1639,7 +1639,7 @@ static int checkout_main(int argc, const char **argv, const char *prefix,
|
||||
cb_option, toupper(cb_option));
|
||||
|
||||
if (opts->overlay_mode == 1 && opts->patch_mode)
|
||||
die(_("-p and --overlay are mutually exclusive"));
|
||||
die(_("options '%s' and '%s' cannot be used together"), "-p", "--overlay");
|
||||
|
||||
if (opts->checkout_index >= 0 || opts->checkout_worktree >= 0) {
|
||||
if (opts->checkout_index < 0)
|
||||
|
||||
Reference in New Issue
Block a user