Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-10 23:59:04 +0300
committerJunio C Hamano <gitster@pobox.com>2017-07-10 23:59:04 +0300
commitcf77911ae51b95bb6cd92216e6ff1a1afc60b3cc (patch)
tree33868362632c402ce6476afe0b857ab6b17b1c20 /help.c
parent8f3a16c390f428af64b8d34d587cc482b70f8666 (diff)
parent968b1fe263f9dfec65be4598e4f0dd76f1692551 (diff)
Merge branch 'mb/reword-autocomplete-message' into maint
Message update. * mb/reword-autocomplete-message: auto-correct: tweak phrasing
Diffstat (limited to 'help.c')
-rw-r--r--help.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/help.c b/help.c
index b44c55ec2d..9d2811efda 100644
--- a/help.c
+++ b/help.c
@@ -355,12 +355,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;