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?
-- Cheers, Sverre Rabbelier
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?
-- Cheers, Sverre Rabbelier
Re: git push bash completion
Sverre Rabbelier, 05.03.2009:
> 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
Re: git push bash completion
On Thu, Mar 5, 2009 at 6:15 PM, Markus Heidelberg <markus.heidelberg@web.de> wrote:
> 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.I'm working on a fix. I hope to have it out tonight for review.
j.