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
@ -2028,12 +2028,12 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
|
||||
if (deepen_relative < 0)
|
||||
die(_("negative depth in --deepen is not supported"));
|
||||
if (depth)
|
||||
die(_("--deepen and --depth are mutually exclusive"));
|
||||
die(_("options '%s' and '%s' cannot be used together"), "--deepen", "--depth");
|
||||
depth = xstrfmt("%d", deepen_relative);
|
||||
}
|
||||
if (unshallow) {
|
||||
if (depth)
|
||||
die(_("--depth and --unshallow cannot be used together"));
|
||||
die(_("options '%s' and '%s' cannot be used together"), "--depth", "--unshallow");
|
||||
else if (!is_repository_shallow(the_repository))
|
||||
die(_("--unshallow on a complete repository does not make sense"));
|
||||
else
|
||||
|
Reference in New Issue
Block a user