Re: git push bash completion
- From
Markus Heidelberg <markus.heidelberg@web.de>
- Date
- Mar 5, 2009, 23:15 UTC
- Message-ID
- <200903060015.39834.markus.heidelberg@web.de>
- In-Reply-To
- <fabb9a1e0903051430k5628fe26v4749360e026ac7d2@mail.gmail.com>
Sverre Rabbelier, 05.03.2009:
Show 11 quoted lines
> Heya, > > Observe: > $ git push ori<tab> > git push origin > > $ git push -f ori<tab> > git push -f origin/ > > Something weird going on there, or is this intentional and am I > missing something?
Something similar happens with fetch and pull. They only complete the remote name, when exactly 2 words are existing on the command line ("git" and the subcommand) by: if [ "$COMP_CWORD" = 2 ]
Doesn't seem right.
Markus