From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Jay Soffian <jaysoffian@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Git rebase/pull questions
Date: Sat, 16 Feb 2008 11:50:30 +0000 (GMT) [thread overview]
Message-ID: <alpine.LSU.1.00.0802161147470.30505@racer.site> (raw)
In-Reply-To: <76718490802152010udd11567v25ae456db0a59f3b@mail.gmail.com>
Hi,
On Fri, 15 Feb 2008, Jay Soffian wrote:
> Second, git-pull completely ignores -s/--strategy if also give --rebase,
> but I wonder if it shouldn't just pass the strategy along to git-rebase.
That is just an oversight. Could you test if this works for you
(completely untested by me...)?
-- snip --
[PATCH] pull --rebase: respect merge strategy options
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
git-pull.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-pull.sh b/git-pull.sh
index 46da0f4..e0bf582 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
-- snap --
Ciao,
Dscho
prev parent reply other threads:[~2008-02-16 11:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-16 4:10 Git rebase/pull questions Jay Soffian
2008-02-16 11:50 ` Johannes Schindelin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LSU.1.00.0802161147470.30505@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=jaysoffian@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox