diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-01-20 13:58:43 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-20 15:04:53 -0800 |
commit | de4eaae63a87ee33baf477ed10e6e97d649084cf (patch) | |
tree | d580f9783cb30032291841c75355c903882820d3 /builtin/fetch.c | |
parent | fetch --negotiate-only: do not update submodules (diff) | |
download | tgif-de4eaae63a87ee33baf477ed10e6e97d649084cf.tar.xz |
fetch: help translators by reusing the same message template
Follow the example set by 12909b6b (i18n: turn "options are
incompatible" into "cannot be used together", 2022-01-05) and use
the same message string to reduce the need for translation.
Reported-by: Jiang Xin <worldhello.net@gmail.com>
Helped-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r-- | builtin/fetch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index dc6e637428..5c329f9835 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -2014,7 +2014,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) break; default: - die(_("--negotiate-only and --recurse-submodules cannot be used together")); + die(_("options '%s' and '%s' cannot be used together"), + "--negotiate-only", "--recurse-submodules"); } } |