diff options
| author | René Scharfe <l.s.r@web.de> | 2023-12-06 12:51:59 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-12-09 07:41:03 +0900 |
| commit | f5f9e972bd437f24365a26ebfbfebba4bc260984 (patch) | |
| tree | 426cd684b3e613b84508194547c7553da7d43252 | |
| parent | revision, rev-parse: factorize incompatibility messages about - -exclude-hidden (diff) | |
| download | git-f5f9e972bd437f24365a26ebfbfebba4bc260984.tar.gz git-f5f9e972bd437f24365a26ebfbfebba4bc260984.zip | |
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>
| -rw-r--r-- | builtin/clean.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clean.c b/builtin/clean.c index 49c224e626..d90766cad3 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -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) |
