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>

René Scharfe committed Dec 6, 2023 at 12:51 UTC f5f9e972bd437f24365a26ebfbfebba4bc260984
1 file changed +1 -1
builtin/clean.c
+1 -1
@@ -971,7 +971,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
971 dir.flags |= DIR_SHOW_OTHER_DIRECTORIES;
972
973 if (ignored && ignored_only)
974 - die(_("-x and -X cannot be used together"));
974 + die(_("options '%s' and '%s' cannot be used together"), "-x", "-X");
975 if (!ignored)
976 setup_standard_excludes(&dir);
977 if (ignored_only)