git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Suggestion for the "Did you mean this?" feature

From
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Date
Dec 18, 2016, 13:26 UTC
Message-ID
<1482067588.13943.4.camel@gmail.com>
In-Reply-To
<5e1a3c4b-43b9-29f2-68fe-8149d9940123@gmx.net>
On Sun, 2016-12-18 at 14:16 +0100, Stephan Beyer wrote:
Show 17 quoted lines
> I cannot tell if this is a good idea (or why it would be a bad idea)
> but
> why do you restrict your suggestion to the case when there is only
> one
> alternative?
> 
> Why not also something like:
> 
> ---
> $ git sta
> git: 'sta' is not a git command. See 'git --help'.
> 
> Did you mean one of these?
> 	[1] status
> 	[2] stage
> 	[3] stash
> You can choose or quit [1,2,3,q]:

That would be fine too. Just thought it would be a good start to start with a simple case. Also, I wasn't sure if there were any drawback's that I was missing. I guess if it was implemented it wouldn't be difficult to extend it further.

-- 
Regards,
Kaartic
Previous: Stephan BeyerNext: Alexei Lozovsky
Message 3 of 14 in “Suggestion for the "Did you mean this?" feature”
  1. Kaartic SivaraamDec 18, 2016
  2. Stephan BeyerDec 18, 2016
  3. Kaartic SivaraamDec 18, 2016
  4. Alexei LozovskyDec 18, 2016
  5. Chris PackhamDec 19, 2016
  6. Tweak help auto-correct phrasing.Marc Branchaud, Dec 19, 2016
  7. Junio C HamanoDec 19, 2016
  8. [PATCHv2] Tweak help auto-correct phrasing.Marc Branchaud, Dec 20, 2016
  9. Kaartic SivaraamJun 20, 2017
  10. Marc BranchaudJun 20, 2017
  11. [PATCHv2 (resend)] Tweak help auto-correct phrasing.Marc Branchaud, Jun 21, 2017
  12. Junio C HamanoJun 21, 2017
  13. Kaartic SivaraamJun 20, 2017
  14. Kaartic SivaraamDec 19, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.