From: ydirson@free.fr
To: git <git@vger.kernel.org>
Subject: git rebase --rebase-merges information loss (and other woes)
Date: Sat, 3 Apr 2021 12:42:28 +0200 (CEST) [thread overview]
Message-ID: <1054682599.520899173.1617446548600.JavaMail.root@zimbra39-e7> (raw)
In-Reply-To: <1874143044.520636715.1617442122946.JavaMail.root@zimbra39-e7>
I've been going through a couple of "rebase -i -r" lately, and would
like to share a couple of thoughts, starting with something looking
like a bug.
1. when a merge has been done with "-s ours", rebase replays it without
any special options, I proceed with the manual resolution, and if I just
--continue, the rebase mechanism believes I want to drop the commit, which
could not be more wrong. I can still be careful myself, and use "git commit
--allow-empty" before --continue, but this feels awkward.
Is there any compelling reason not record the merge here ?
2. more generally, when a merge has been done with special options, it
would be a useful help in solving conflicts if rebase could use the same
options. Maybe we could allow the rebase "merge" instruction to use more
merge options. The user would still have to edit the instruction sheet
manually for those, however, and we could then want "rebase -i" to fill
them automatically, but that would seem to require recording the merge
options somewhere to start with - maybe in a note.
3. while it's made clear that any conflict resolution and amendments
have to be redone, maybe we could provide some support for a common
use case, namely "sink that commit/fixup down". The conflict
resolution would then be like "checkout $OLD && cherry-pick -n $FIXUP".
Maybe this could be activated by a merge option in rebase-interactive
instructions, like "merge -C$OLD --fixup $F1 --fixup $F2".
Would that seem reasonable ?
--
Yann
next parent reply other threads:[~2021-04-03 10:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1874143044.520636715.1617442122946.JavaMail.root@zimbra39-e7>
2021-04-03 10:42 ` ydirson [this message]
2021-04-03 14:06 ` git rebase --rebase-merges information loss (and other woes) Sergey Organov
2021-04-03 16:09 ` ydirson
2021-04-03 19:01 ` Sergey Organov
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=1054682599.520899173.1617446548600.JavaMail.root@zimbra39-e7 \
--to=ydirson@free.fr \
--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).