Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Fix a bug in _git's clone completion
- X-seq: zsh-workers 25540
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: Fix a bug in _git's clone completion
- Date: Thu, 28 Aug 2008 20:37:07 +0200
- In-reply-to: <237967ef0808281104g1b22c705s662f4f17d8db0b5a@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh workers <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080828160152.GE6330@xxxxxxxxxxxxxxx> <237967ef0808281104g1b22c705s662f4f17d8db0b5a@xxxxxxxxxxxxxx>
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