Re: [PATCH 1/10] Teach git-completion.bash how to complete git-merge.
Junio C Hamano <junkio@cox.net> wrote:
Show 15 quoted lines
> "Shawn O. Pearce" <spearce@spearce.org> writes:
>
> > +__git_merge_strategies ()
> > +{
> > + sed -n "/^all_strategies='/{
> > + s/^all_strategies='//
> > + s/'//
> > + p
> > + q
> > + }" "$(git --exec-path)/git-merge"
> > +}
> > +
>
> Shouldn't we load and compute this once and keep the result in a
> variable (say $__git_merge_strategies)?Sure. See my latest 4 patch series. :-)