mirror of
https://github.com/git/git
synced 2024-10-02 14:45:21 +00:00
clean: factorize incompatibility message
Use the standard parameterized message for reporting incompatible options to inform users that they can't use -x and -X together. This reduces the number of strings to translate and makes the UI slightly more consistent. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
81fb70f55e
commit
f5f9e972bd
|
@ -971,7 +971,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
|
|||
dir.flags |= DIR_SHOW_OTHER_DIRECTORIES;
|
||||
|
||||
if (ignored && ignored_only)
|
||||
die(_("-x and -X cannot be used together"));
|
||||
die(_("options '%s' and '%s' cannot be used together"), "-x", "-X");
|
||||
if (!ignored)
|
||||
setup_standard_excludes(&dir);
|
||||
if (ignored_only)
|
||||
|
|
Loading…
Reference in a new issue