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

Feature request: detecting mistyped command and isdentical possible matches

From
EHErik Huizinga <huizinga.erik@gmail.com>
Date
Aug 21, 2018, 13:01 UTC
Message-ID
<CADA507y8NAgN_v2-cxdWYZEvGUgzxFbFD52KmdyynWr6MufvRA@mail.gmail.com>
Hi!

I have an alias for 'git status': 'git st'. I also have configured that an unrecognised (mistyped) Git command runs the closest match. In this case I did the following:

''' $ git stt git: 'stt' is not a git command. See 'git --help'.

The most similar commands are
  st
  status
'''

In this particular case it would have been nice if Git also understood that 'git st' and 'git status' are equivalent in my configuration, so that it shouldn't have to warn me about them as different matches, but instead just run any of them.

Thank you for Git. Maybe I'll see this feature in the future!

Best, Erik

Message 1 of 1 in “Feature request: detecting mistyped command and isdentical possible matches”
  1. Erik HuizingaAug 21, 2018

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.