]> git.99rst.org Git - git.git/commitdiff
clean: factorize incompatibility message
authorRené Scharfe <redacted>
Wed, 6 Dec 2023 11:51:59 +0000 (12:51 +0100)
committerJunio C Hamano <redacted>
Fri, 8 Dec 2023 22:41:03 +0000 (07:41 +0900)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/clean.c

index 49c224e626d61819a633252572d3e7f3b32ffd62..d90766cad3a0ba13c41dd0b90c03254ba5eb83ee 100644 (file)
@@ -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)
git clone https://git.99rst.org/PROJECT