Skip to content

Commit

Permalink
Merge branch 'mb/reword-autocomplete-message'
Browse files Browse the repository at this point in the history
Message update.

* mb/reword-autocomplete-message:
  auto-correct: tweak phrasing
  • Loading branch information
gitster committed Jun 26, 2017
2 parents 6968ca9 + 968b1fe commit aca226e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions help.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,18 @@ const char *help_unknown_cmd(const char *cmd)
clean_cmdnames(&main_cmds);
fprintf_ln(stderr,
_("WARNING: You called a Git command named '%s', "
"which does not exist.\n"
"Continuing under the assumption that you meant '%s'"),
cmd, assumed);
if (autocorrect > 0) {
fprintf_ln(stderr, _("in %0.1f seconds automatically..."),
(float)autocorrect/10.0);
"which does not exist."),
cmd);
if (autocorrect < 0)
fprintf_ln(stderr,
_("Continuing under the assumption that "
"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);
}
return assumed;
Expand Down

0 comments on commit aca226e

Please sign in to comment.