From: Mark Hollomon Date: Wed, 15 Mar 2006 22:51:41 +0000 (+0000) Subject: Let merge set the default strategy. X-Git-Tag: v1.3.0-rc1~21^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c8e2db00f9622af6e5f640443dfbe63bb1af39e0;p=git.git Let merge set the default strategy. If the user does not set a merge strategy for git-pull, let git-merge calculate a default strategy. [jc: with minor stylistic tweaks] Signed-off-by: Mark Hollomon Signed-off-by: Junio C Hamano --- diff --git a/git-pull.sh b/git-pull.sh index 6caf1aad4..17fda2672 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -71,19 +71,15 @@ case "$merge_head" in ;; ?*' '?*) var=`git repo-config --get pull.octopus` - if test '' = "$var" + if test -n "$var" then - strategy_default_args='-s octopus' - else strategy_default_args="-s $var" fi ;; *) var=`git repo-config --get pull.twohead` - if test '' = "$var" - then - strategy_default_args='-s recursive' - else + if test -n "$var" + then strategy_default_args="-s $var" fi ;;