Skip to content

Commit

Permalink
Allow git-merge to select the default strategy.
Browse files Browse the repository at this point in the history
Now that git-merge knows how to use the pull.{twohead,octopus}
configuration options to select the default merge strategy there
is no reason for git-pull to do the same immediately prior to
invoking git-merge.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
spearce authored and Junio C Hamano committed Dec 28, 2006
1 parent de81194 commit 6b5a795
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions git-pull.sh
Expand Up @@ -90,18 +90,6 @@ case "$merge_head" in
echo >&2 "Cannot merge multiple branches into empty head"
exit 1
fi
var=`git-repo-config --get pull.octopus`
if test -n "$var"
then
strategy_default_args="-s $var"
fi
;;
*)
var=`git-repo-config --get pull.twohead`
if test -n "$var"
then
strategy_default_args="-s $var"
fi
;;
esac

Expand All @@ -112,12 +100,6 @@ then
exit
fi

case "$strategy_args" in
'')
strategy_args=$strategy_default_args
;;
esac

merge_name=$(git-fmt-merge-msg <"$GIT_DIR/FETCH_HEAD") || exit
exec git-merge $no_summary $no_commit $squash $strategy_args \
"$merge_name" HEAD $merge_head

0 comments on commit 6b5a795

Please sign in to comment.