Skip to content

Commit cf77911

Browse files
committed
Merge branch 'mb/reword-autocomplete-message' into maint
Message update. * mb/reword-autocomplete-message: auto-correct: tweak phrasing
2 parents 8f3a16c + 968b1fe commit cf77911

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

help.c

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,18 @@ const char *help_unknown_cmd(const char *cmd)
355355
clean_cmdnames(&main_cmds);
356356
fprintf_ln(stderr,
357357
_("WARNING: You called a Git command named '%s', "
358-
"which does not exist.\n"
359-
"Continuing under the assumption that you meant '%s'"),
360-
cmd, assumed);
361-
if (autocorrect > 0) {
362-
fprintf_ln(stderr, _("in %0.1f seconds automatically..."),
363-
(float)autocorrect/10.0);
358+
"which does not exist."),
359+
cmd);
360+
if (autocorrect < 0)
361+
fprintf_ln(stderr,
362+
_("Continuing under the assumption that "
363+
"you meant '%s'."),
364+
assumed);
365+
else {
366+
fprintf_ln(stderr,
367+
_("Continuing in %0.1f seconds, "
368+
"assuming that you meant '%s'."),
369+
(float)autocorrect/10.0, assumed);
364370
sleep_millisec(autocorrect * 100);
365371
}
366372
return assumed;

0 commit comments

Comments
 (0)