Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _git: Add completion for help subcommand
- X-seq: zsh-workers 28217
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] _git: Add completion for help subcommand
- Date: Mon, 30 Aug 2010 23:57:48 -0700
- In-reply-to: <AANLkTinuZxQToj3aUQWsJovzwfk2SDJ3mstKJhxZNKWo@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1282393263-16767-1-git-send-email-aaron@xxxxxxxxxx> <AANLkTimOcmpFpTrrVMsuvjCR8puCnhoRVsmduci=SP8d@xxxxxxxxxxxxxx> <alpine.LNX.2.01.1008252311460.4535@hp> <AANLkTi=y_z0MEtVGi02AqhDTR5hgi2EU-+=6UUu2kGe0@xxxxxxxxxxxxxx> <100830094359.ZM7722@xxxxxxxxxxxxxxxxxxxxxx> <AANLkTinuZxQToj3aUQWsJovzwfk2SDJ3mstKJhxZNKWo@xxxxxxxxxxxxxx>
On Aug 30, 8:59pm, Nikolai Weibull wrote:
} Subject: Re: [PATCH] _git: Add completion for help subcommand
}
} > On Aug 26, 9:55am, Nikolai Weibull wrote:
}
} > } ( --b --c)--a
} > } (--a --c)--b
} > } (--a --b )--c
}
} What I never "understood" was why the standard form wasn't to use a
} variable in this case. I mean, the difference is that you exclude the
} current option, which is of course excluded by itself (unless its
} defined as being able to appear many times).
Hmm. I'm not certain, now that you mention it. The functions that
use the above form are generally some of the earliest completions
that were ever written (or were cribbed from those early ones), so it
may be that at one point in the past it was a problem to exclude the
same option one was defining, e.g., (--a)--a would break. If that's
not currently the case [I don't know either way] then you're right,
one might as well use the style with the variable.
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author