Re: bug: unexpected output for "git st" + suggestion
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Nov 23, 2010, 12:40 UTC
- Message-ID
- <AANLkTinFMn4V3c3yV6j72eqj5=v4jW7Uh3fmNDOyYjnT@mail.gmail.com>
- In-Reply-To
- <AANLkTimdKoGHapMTrA-bf_mEyMAEiiM0ALvLbZX8QJpv@mail.gmail.com>
On Tue, Nov 23, 2010 at 7:23 PM, Tarek Ziadé <ziade.tarek@gmail.com> wrote:
Show 14 quoted lines
> Hello, > > I am new to Git and I tried to run "git st" > > I have found one small bug: "status" is not listed in the help screen > Git displays in that case. > > $ git st > git: 'st' is not a git command. See 'git --help'. > > Did you mean one of these? > reset > stage > stash
It's heuristics, based on the assumption that you mistype a command by a letter or two. It gives helpful suggestions most of the time, but you can't expect it to be always right, especially when "st" is not a mistyping. "git --help" does show "status" though so I guess it's ok.
-- Duy