Re: bug: unexpected output for "git st" + suggestion
- From
- Tarek Ziadé <ziade.tarek@gmail.com>
- Date
- Nov 23, 2010, 13:18 UTC
- Message-ID
- <AANLkTi=FaZ4MhJ2gDFZGiJVHsuY9jtNGgdWxX3Dq4BY6@mail.gmail.com>
- In-Reply-To
- <AANLkTikxMXRiCYE=ny1tfrS64P0ywAHP_9eLJJzNUG3Q@mail.gmail.com>
On Tue, Nov 23, 2010 at 2:08 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote: ...
> > There's another command that starts with "st": stripspace (it's a > lowlevel command by the way). It's going to be a lot more if you type > "git m" and expect all commands starting with 'm'.
Maybe so yeah. That's how Mercurial does.
$ hg s
hg: command 's' is ambiguous:
serve showconfig status strip summary> Personally I would > do "git help -a|grep st" in that case. Hmm.. "git apropos" could be a > good idea.
I guess.
Show 8 quoted lines
>> That's what the tab completion does: >> >> $ git st<tab> >> stage stash status > > And it does for tab _completion_ (notice stripspace is missing, > git-completion.sh only lists high level commands). The above case is > to help mistyping.
Right. Overall, I guess it's just a cultural thing. Using mainly Mercurial, "st" means for me "status" so I was surprised not to find it as a suggestion.
Cheers Tarek
-- Tarek Ziadé | http://ziade.org