[Feature Request] Did you mean `git ...`? should ask user for feedback, not return to the prompt
- From
- Eric Andrew Lewis <eric.andrew.lewis@gmail.com>
- Date
- Dec 19, 2013, 22:38 UTC
- Message-ID
- <CAMi+fEnVekrWYrG6sGiRPmOXxaJ1-Y9xd83W7Wvw3GwWz8DuBQ@mail.gmail.com>
Git is smart enough to realize when you make a spelling error and enter a non-existent git command. Since you probably do mean what it suggests, it follows that the user would want to immediately say “yes, I did want to do that,” rather than return to the command line to enter the command again.
e.g.
$ git psh git: 'psh' is not a git command. See 'git —help'. Did you mean 'push'[y/n]?
-- Eric Andrew Lewis