Re: Feature request: --preserve-merges to add "exec git merge ..." instead of "pick ..."
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 7, 2019, 16:42 UTC
- Message-ID
- <xmqq36q4berk.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAH0Uv3Eu7bGSVaJKu6kDjp0BPRe0yROucDfJ8QHV3X_ZjNJT7g@mail.gmail.com>
Andreas Hennings <andreas@dqxtech.net> writes:
Show 5 quoted lines
> 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.