* Git rebase/pull questions
@ 2008-02-16 4:10 Jay Soffian
2008-02-16 11:50 ` Johannes Schindelin
0 siblings, 1 reply; 2+ messages in thread
From: Jay Soffian @ 2008-02-16 4:10 UTC (permalink / raw)
To: Git Mailing List
First, I notice that git-rebase supports a --s/--strategy option (which
implies -m/--merge). I wonder whether it should respect
branch.<name>.mergeoptions as the default for this setting?
(BTW, git-rebase's USAGE/LONG_USAGE doesn't match its man page. Also,
the man page synopsis doesn't include all the options the man page
documents later on.)
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.
Thoughts?
j.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Git rebase/pull questions
2008-02-16 4:10 Git rebase/pull questions Jay Soffian
@ 2008-02-16 11:50 ` Johannes Schindelin
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2008-02-16 11:50 UTC (permalink / raw)
To: Jay Soffian; +Cc: Git Mailing List
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-16 11:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-16 4:10 Git rebase/pull questions Jay Soffian
2008-02-16 11:50 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox