From: Jonathan Nieder Date: Tue, 17 Aug 2010 07:05:32 +0000 (-0500) Subject: merge script: allow custom strategies X-Git-Tag: v1.7.3-rc0~16^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e69dccf8cd4576be804597b2960aa7d0020a65db;p=git.git merge script: allow custom strategies The idea comes from v1.6.1-rc1~294^2~7 (builtin-merge: allow using a custom strategy, 2008-07-30). Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/contrib/examples/git-merge.sh b/contrib/examples/git-merge.sh index 0d53735d6..49d826508 100755 --- a/contrib/examples/git-merge.sh +++ b/contrib/examples/git-merge.sh @@ -193,9 +193,13 @@ parse_config () { shift case " $all_strategies " in *" $1 "*) - use_strategies="$use_strategies$1 " ;; + use_strategies="$use_strategies$1 " + ;; *) - die "available strategies are: $all_strategies" ;; + type "git-merge-$1" >/dev/null 2>&1 || + die "available strategies are: $all_strategies" + use_strategies="$use_strategies$1 " + ;; esac ;; -X)