From: Shawn Pearce Date: Mon, 27 Nov 2006 20:12:36 GMT Subject: Re: [PATCH 1/10] Teach git-completion.bash how to complete git-merge. Message-ID: <20061127201236.GA7331@spearce.org> In-Reply-To: <7vlklwhffb.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > "Shawn O. Pearce" 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. :-) --