Re: [PATCH 1/10] Teach git-completion.bash how to complete git-merge.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Nov 27, 2006, 19:12 UTC
- Message-ID
- <7vlklwhffb.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20061127084047.GA19745@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 10 quoted lines
> +__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)?