Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Fix a bug in _git's clone completion



Mikael Magnusson <mikachu@xxxxxxxxx>:
> 2008/8/28 Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>:
[...]
> > Finally, I do not understand why the end of the _arguments call was
> > done like this:
> >
> > [snip]
> >    ':repository:__git_any_repositories' \-
> >    '*:directory:_directories' && ret=0-
> > [snap]
> >
> > ...and not just: '*:repository:__git_any_repositories' && ret 0
> >
> > If someone can explain, please do ahead. :)
> 
> This is because
> SYNOPSIS
>            git clone ... <repository> [<directory>]
> 
> Ie, you can give an optional argument where to clone to. The * is bogus
> though.

Oops, right.
I could swear the completion did something wrong, but I can't
reproduce it anymore. I guess, I missed one zsh-restart when I was
testing. :-)

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



Messages sorted by: Reverse Date, Date, Thread, Author