Subject: Re: [PATCH v2] Speed up bash completion loading

From: Stephen Boyd <[email-masked]>
Date: Mon, 16 Nov 2009 00:28:50 -0800

Jonathan Nieder wrote:
>
> Junio C Hamano wrote:
>> Jonathan Nieder <[email-masked]> writes:
>>
>>>  __git_compute_merge_strategies ()
>>>  {
>>> -	: ${__git_merge_strategies=$(__git_list_merge_strategies)}
>>> +	__git_merge_strategies=$(__git_list_merge_strategies)
>> Wouldn't
>>
>> 	: ${__gms:=$(command)}
>>
>> run command only until it gives a non-empty string?
>
> Yes. :)

Why not do this for all of the lists and not just the merge strategies?