Skip to content

Commit aca226e

Browse files
committed
Merge branch 'mb/reword-autocomplete-message'
Message update. * mb/reword-autocomplete-message: auto-correct: tweak phrasing
2 parents 6968ca9 + 968b1fe commit aca226e

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
@@ -356,12 +356,18 @@ const char *help_unknown_cmd(const char *cmd)
356356
clean_cmdnames(&main_cmds);
357357
fprintf_ln(stderr,
358358
_("WARNING: You called a Git command named '%s', "
359-
"which does not exist.\n"
360-
"Continuing under the assumption that you meant '%s'"),
361-
cmd, assumed);
362-
if (autocorrect > 0) {
363-
fprintf_ln(stderr, _("in %0.1f seconds automatically..."),
364-
(float)autocorrect/10.0);
359+
"which does not exist."),
360+
cmd);
361+
if (autocorrect < 0)
362+
fprintf_ln(stderr,
363+
_("Continuing under the assumption that "
364+
"you meant '%s'."),
365+
assumed);
366+
else {
367+
fprintf_ln(stderr,
368+
_("Continuing in %0.1f seconds, "
369+
"assuming that you meant '%s'."),
370+
(float)autocorrect/10.0, assumed);
365371
sleep_millisec(autocorrect * 100);
366372
}
367373
return assumed;

0 commit comments

Comments
 (0)