Merge branch 'mb/reword-autocomplete-message' into maint

Message update.

* mb/reword-autocomplete-message:
  auto-correct: tweak phrasing
maint
Junio C Hamano 2017-07-10 13:59:04 -07:00
commit cf77911ae5
1 changed files with 12 additions and 6 deletions

18
help.c
View File

@ -355,12 +355,18 @@ const char *help_unknown_cmd(const char *cmd)
clean_cmdnames(&main_cmds); clean_cmdnames(&main_cmds);
fprintf_ln(stderr, fprintf_ln(stderr,
_("WARNING: You called a Git command named '%s', " _("WARNING: You called a Git command named '%s', "
"which does not exist.\n" "which does not exist."),
"Continuing under the assumption that you meant '%s'"), cmd);
cmd, assumed); if (autocorrect < 0)
if (autocorrect > 0) { fprintf_ln(stderr,
fprintf_ln(stderr, _("in %0.1f seconds automatically..."), _("Continuing under the assumption that "
(float)autocorrect/10.0); "you meant '%s'."),
assumed);
else {
fprintf_ln(stderr,
_("Continuing in %0.1f seconds, "
"assuming that you meant '%s'."),
(float)autocorrect/10.0, assumed);
sleep_millisec(autocorrect * 100); sleep_millisec(autocorrect * 100);
} }
return assumed; return assumed;