Skip to content

Is it possible to redo parts of an iterative merge? #188

Open
@BowiFromStackOverflow

Description

@BowiFromStackOverflow

This is more a question than an "issue". I've posted the very same question on StackOverflow already, hoping for it to just be me being unable to find the information in git-imerge documentation and got a "I do not think there is an easy way to achieve it!" comment.

The internet tells me about git-imerge:

Lets you test every intermediate state. If there is a problem, you can use "git bisect" to find the exact pairwise merge that was faulty. You can redo that merge and continue the incremental merge from there (retaining earlier pairwise merges).

But how can I do that?

To start the operation of eg. merging branch newFeature to master, I would use

git checkout master
git-imerge start --name=mergeMyNewFeatureToMaster --first-parent --goal=merge newFeature

And then resolve all the conflicts that imerge finds by itself. After finishing, I see that somewhere a bug has been inserted. I search for it using

git bisect start
git bisect good ...
git bisect bad ...
...

But when I have found the merge commit that did introduce the problem – how can I redo that merge and continue the incremental merge from there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions