From: Junio C Hamano <gitster@pobox.com>
To: Andreas Hennings <andreas@dqxtech.net>
Cc: git@vger.kernel.org
Subject: Re: Feature request: --preserve-merges to add "exec git merge ..." instead of "pick ..."
Date: Mon, 07 Jan 2019 08:42:39 -0800 [thread overview]
Message-ID: <xmqq36q4berk.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <CAH0Uv3Eu7bGSVaJKu6kDjp0BPRe0yROucDfJ8QHV3X_ZjNJT7g@mail.gmail.com> (Andreas Hennings's message of "Mon, 7 Jan 2019 15:02:14 +0100")
Andreas Hennings <andreas@dqxtech.net> writes:
> This means we need a rebase operation where:
> - The commits of the acceptance branch itself are being replaced.
> - The commits of the feature branches remain as they are.
>
> A "git rebase --preserve-merges" almost does this, but not really.
This wished-for feature sounds to me more like the "first-parent"
mode that has been discussed a few times in the past but never
materialized.
The preserve-merges mode is getting abandoned by the original author
as unsalvageable. Have you tried the rebase-merges mode? That may
let you choose replaying only the merge commits on the acceptance
branch without touching the tips of the feature branches getting
merged.
next prev parent reply other threads:[~2019-01-07 16:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-07 14:02 Feature request: --preserve-merges to add "exec git merge ..." instead of "pick ..." Andreas Hennings
2019-01-07 16:42 ` Junio C Hamano [this message]
2019-01-07 21:12 ` Andreas Hennings
2019-01-08 18:13 ` Andreas Hennings
2019-01-08 18:38 ` Junio C Hamano
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=xmqq36q4berk.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=andreas@dqxtech.net \
--cc=git@vger.kernel.org \
/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).