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

Re: [PATCH] Remove redundancies from `git` completion



On 8/30/21, Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
> On Mon, Aug 30, 2021 at 2:41 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>>
>> On 8/30/21, Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
>> > By the way: Why is there a `(( $+functions[_git-XXX] )) ||` statement
>> > in front of each function inside Completion/Unix/Command/_git ? Can
>> > those be removed?
>>
>> They are there so that you can override their implementation easily.
>
> Is that documented somewhere?

Not explicitly, afaik.

> And for purposes of overriding, wouldn't it be cleaner to simply
> supply all sub-functions as separate #autoload files?

I don't think anyone is interested in maintaining 285 separate
completer files for git :).

-- 
Mikael Magnusson




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