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

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



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?

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




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