From: Alex Scarborough <alex@gameclay.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
Michael Haggerty <mhagger@alum.mit.edu>,
Alex Scarborough <alex@gameclay.com>
Subject: Re: [PATCH] rebase -p: Preserve fast-forwardable merges
Date: Mon, 25 Jan 2010 10:53:06 -0800 [thread overview]
Message-ID: <dd10f5481001251053x2ac9fa62r57a46f1231e36560@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.00.1001251508400.8733@intel-tinevez-2-302>
On Mon, Jan 25, 2010, Johannes Schindelin wrote:
> On Fri, 22 Jan 2010, Alex Scarborough wrote:
>
> > Previously, rebase -p would not preserve a merge commit if the merge
> > could be resolved as a fast-forward. rebase -p now passes --no-ff to
> > git merge when recreating a merge commit, which ensures that merge
> > commits created with git merge --no-ff are preserved.
>
> For my use case (well, it used to be my use case), namely keeping a number
> of topic branches on top of an upstream up-to-date, this is not the
> desired action. In my use case, merged topic branches should just vanish,
> and not even leave a merge commit.
I see. In that use case this patch would be rather irritating :)
What do you think of adding a --no-ff option to git rebase which, when used
with -p, will recreate merge commits even if they could be resolved as a
fast-forward? That would leave your use case unchanged while giving my
use case a way out, so to speak.
Either way, I suggest we change the documentation for rebase -p to state
that it does not preserve merge commits that can be fast-forwarded after
rebasing.
If it sounds good, I should be able to roll some patches by the end of the
week.
-Alex Scarborough
next prev parent reply other threads:[~2010-01-25 18:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-23 7:29 [PATCH] rebase -p: Preserve fast-forwardable merges Alex Scarborough
2010-01-25 14:10 ` Johannes Schindelin
2010-01-25 18:53 ` Alex Scarborough [this message]
2010-01-26 11:14 ` Johannes Schindelin
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=dd10f5481001251053x2ac9fa62r57a46f1231e36560@mail.gmail.com \
--to=alex@gameclay.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mhagger@alum.mit.edu \
/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;
as well as URLs for NNTP newsgroup(s).