* [PATCH] Let merge set the default strategy.
@ 2006-03-15 22:51 Mark Hollomon
2006-03-15 23:40 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Mark Hollomon @ 2006-03-15 22:51 UTC (permalink / raw)
To: git; +Cc: Johannes.Schindelin, markhollomon
If the user does not set a merge strategy for git-pull,
let git-merge calculate a default strategy.
This may be preferable to the earlier patch involving
NO_PYTHON.
Signed-off-by: Mark Hollomon <markhollomon@comcast.net>
---
git-pull.sh | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
54e2c920b8ad979bc75d25ae73300be6077f46a0
diff --git a/git-pull.sh b/git-pull.sh
index 6caf1aa..7764b70 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 '' != "$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 '' != "$var"
+ then
strategy_default_args="-s $var"
fi
;;
--
1.2.4.gea75
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Let merge set the default strategy.
2006-03-15 22:51 [PATCH] Let merge set the default strategy Mark Hollomon
@ 2006-03-15 23:40 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-03-15 23:40 UTC (permalink / raw)
To: Mark Hollomon; +Cc: git
Mark Hollomon <markhollomon@comcast.net> writes:
> If the user does not set a merge strategy for git-pull,
> let git-merge calculate a default strategy.
Makes lot of sense, thanks.
> This may be preferable to the earlier patch involving
> NO_PYTHON.
Which earlier patch???
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-15 23:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-15 22:51 [PATCH] Let merge set the default strategy Mark Hollomon
2006-03-15 23:40 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox