git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Let merge set the default strategy.

From
MHMark Hollomon <markhollomon@comcast.net>
Date
Mar 15, 2006, 22:51 UTC
Message-ID
<1142463103-6986-markhollomon@comcast.net>

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
Next: Junio C Hamano
Message 1 of 2 in “Let merge set the default strategy.”
  1. Let merge set the default strategy.Mark Hollomon, Mar 15, 2006
  2. Junio C HamanoMar 15, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.