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

[PATCH 1/2] pull: pass --strategy along to to rebase

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 23, 2008, 00:52 UTC
Message-ID
<1203727950-14980-1-git-send-email-jaysoffian@gmail.com>
rebase supports --strategy, so pull should pass the option along to it.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
---
I noticed the other day that pull didn't pass --strategy along to rebase, but
forgot I'd noticed, even though Johannes replied w/a patch. Anyway, my next
patch documents pull's usage via its OPTIONS_SPEC and I noticed the problem
again. I fix it here so that I can document its use in the next patch. :-)
 git-pull.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-pull.sh b/git-pull.sh
index 46da0f4..3ce32b5 100755
--- a/git-pull.sh
+++ b/git-pull.sh
@@ -174,6 +174,7 @@ fi
 
 merge_name=$(git fmt-merge-msg <"$GIT_DIR/FETCH_HEAD") || exit
 test true = "$rebase" &&
-	exec git-rebase --onto $merge_head ${oldremoteref:-$merge_head}
+	exec git-rebase $strategy_args --onto $merge_head \
+	${oldremoteref:-$merge_head}
 exec git-merge $no_summary $no_commit $squash $no_ff $strategy_args \
 	"$merge_name" HEAD $merge_head
-- 
1.5.4.2.285.g1e9f
Next: Jay Soffian
Message 1 of 7 in “pull: pass --strategy along to to rebase”
  1. 1/2 pull: pass --strategy along to to rebaseJay Soffian, Feb 23, 2008
  2. 2/2 pull: document usage via OPTIONS_SPECJay Soffian, Feb 23, 2008
  3. Junio C HamanoFeb 23, 2008
  4. Jay SoffianFeb 23, 2008
  5. pull: document usage via OPTIONS_SPECJay Soffian, Feb 26, 2008
  6. Junio C HamanoFeb 26, 2008
  7. Jay SoffianFeb 26, 2008

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.