git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Hrvoje Nikšić" <hniksic@gmail.com>
To: git@vger.kernel.org
Subject: Re: Converting merge to rebase in the presence of conflicts
Date: Mon, 11 Apr 2011 17:15:11 +0200	[thread overview]
Message-ID: <BANLkTinVUdmG56oPQXvMhFh6hLcFj3_jZg@mail.gmail.com> (raw)
In-Reply-To: <4DA3182B.2030305@viscovery.net>

Thanks for the responses, rerere works nicely, if somewhat cryptic. At
the rebase step I got:

First, rewinding head to replay your work on top of it...
Applying: changed2
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging a
CONFLICT (content): Merge conflict in a
Resolved 'a' using previous resolution.
Failed to merge in the changes.
Patch failed at 0001 changed2

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

That's a lot of output, some of it scary-looking. (OK, maybe not
scary-looking to me, but certainly so to someone not yet fully
comfortable with git.)  Running "git rebase --continue" told me I
needed to "edit all merge conflicts and then mark them as resolved",
whereas the conflicts are in fact already resolved, but rebase doesn't
know it.  Again, this isn't a big problem for me, but it's unfriendly.
 "git add" followed by "git rebase --continue" worked exactly as I
hoped it would.

I still wonder why rerere is necessary here. After all, even without
the rerere metadata, the information about conflict resolution is
right there, in the merge commit, and rebase could conceivably make
use of it. What am I missing?

Hrvoje

  reply	other threads:[~2011-04-11 15:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 14:13 Converting merge to rebase in the presence of conflicts Hrvoje Nikšić
2011-04-11 14:39 ` Michael J Gruber
2011-04-11 15:03 ` Johannes Sixt
2011-04-11 15:15   ` Hrvoje Nikšić [this message]
2011-04-12  2:55     ` Michael Haggerty
2011-04-12  6:11     ` Johannes Sixt

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTinVUdmG56oPQXvMhFh6hLcFj3_jZg@mail.gmail.com \
    --to=hniksic@gmail.com \
    --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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).