Skip to content

Commit

Permalink
merge script: allow custom strategies
Browse files Browse the repository at this point in the history
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 <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Aug 18, 2010
1 parent 5d75a52 commit e69dccf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contrib/examples/git-merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e69dccf

Please sign in to comment.