From 83b72f1effd02cf2b5898337820cb4b79a4c71b6 Mon Sep 17 00:00:00 2001 From: Brian Bartels Date: Thu, 7 Oct 2021 08:51:22 -0700 Subject: [PATCH 1/4] Update help.c --- help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/help.c b/help.c index be2fa642415f68..b1ba19d4749dd4 100644 --- a/help.c +++ b/help.c @@ -750,7 +750,7 @@ NORETURN void help_unknown_ref(const char *ref, const char *cmd, if (suggested_refs.nr > 0) { fprintf_ln(stderr, - Q_("\nDid you mean this?", + Q_("\nDid you mean this? (config help.autocorrect to run suggestion automatically)", "\nDid you mean one of these?", suggested_refs.nr)); for (i = 0; i < suggested_refs.nr; i++) From 9a3d95b1c010a0f144a8c864d77edfed0531e6be Mon Sep 17 00:00:00 2001 From: Brian Bartels Date: Thu, 7 Oct 2021 12:04:23 -0700 Subject: [PATCH 2/4] Inform users that help.autocorrect exists to increase user adoption of the feature Out of 200 engineers asked 160+ were not aware of help.autocorrect --- help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/help.c b/help.c index b1ba19d4749dd4..691eb8940e1ff3 100644 --- a/help.c +++ b/help.c @@ -750,7 +750,7 @@ NORETURN void help_unknown_ref(const char *ref, const char *cmd, if (suggested_refs.nr > 0) { fprintf_ln(stderr, - Q_("\nDid you mean this? (config help.autocorrect to run suggestion automatically)", + Q_("\nDid you mean this? (see help.autocorrect to run suggestion automatically)", "\nDid you mean one of these?", suggested_refs.nr)); for (i = 0; i < suggested_refs.nr; i++) From a038de3ba97b9945f0856b44edd9e74e48245684 Mon Sep 17 00:00:00 2001 From: Brian Bartels Date: Thu, 7 Oct 2021 12:09:32 -0700 Subject: [PATCH 3/4] Logs: Inform Users about help.autocorrect In a poll of 200 engineers. 160+ didn't know about git autocorrect. This change will hopefully increase adoption of the feature. --- help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/help.c b/help.c index 691eb8940e1ff3..de7be3de4cc17f 100644 --- a/help.c +++ b/help.c @@ -750,7 +750,7 @@ NORETURN void help_unknown_ref(const char *ref, const char *cmd, if (suggested_refs.nr > 0) { fprintf_ln(stderr, - Q_("\nDid you mean this? (see help.autocorrect to run suggestion automatically)", + Q_("\nDid you mean this? (see help.autocorrect for command autocorrection)", "\nDid you mean one of these?", suggested_refs.nr)); for (i = 0; i < suggested_refs.nr; i++) From fc4aea1fa4cdcb21047fb1e6152aac29121804e0 Mon Sep 17 00:00:00 2001 From: Brian Bartels Date: Thu, 7 Oct 2021 12:12:36 -0700 Subject: [PATCH 4/4] logs: Inform Users about help.autocorrect In a poll of 200 engineers, 160+ didn't know about git autocorrect. A short message could help drive adoption --- help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/help.c b/help.c index de7be3de4cc17f..c020a54aab8781 100644 --- a/help.c +++ b/help.c @@ -750,7 +750,7 @@ NORETURN void help_unknown_ref(const char *ref, const char *cmd, if (suggested_refs.nr > 0) { fprintf_ln(stderr, - Q_("\nDid you mean this? (see help.autocorrect for command autocorrection)", + Q_("\nDid you mean this? (see help.autocorrect to run automatically)", "\nDid you mean one of these?", suggested_refs.nr)); for (i = 0; i < suggested_refs.nr; i++)