Peaker/git-mediate

Handle submodule conflicts

yairchu opened this issue · 8 comments

Currently shows:

resolve-trivial-conflicts: <SUBMODULE-PATH>: openFile: inappropriate type (is a directory)

This was fixed by noam in PR #7

Note that there's nothing smart being done when conflicted submodules exist. Any ideas for what could help here?

Not sure what git itself does with submodules, but if one's submodule is a fast-forward of the other then it's a trivial conflict.

As for non-trivial conflicts, it should probably propagate to a conflict in the submodule, and then resolve all the trivial conflicts there.. though maybe it's not so trivial

Then I need to decide if I want to rebase or merge in the submodule :-(

Maybe can have a flag --merge or so that does this.

On Tue, Sep 29, 2015 at 1:29 PM, Yair Chuchem notifications@github.com
wrote:

Not sure what git itself does with submodules, but if one's submodule is a
fast-forward of the other then it's a trivial conflict.

As for non-trivial conflicts, it should probably propagate to a conflict
in the submodule, and then resolve all the trivial conflicts there.. though
maybe it's not so trivial


Reply to this email directly or view it on GitHub
#5 (comment)
.

If the conflicts are during a rebase, default is rebase as well. If they are during merge - merge is the default..

Any way to detect what's the "current" operation?

If the conflicts are during a rebase, default is rebase as well. If they
are during merge - merge is the default..


Reply to this email directly or view it on GitHub
#5 (comment)
.

when rebasing, "git status" says "You are currently rebasing"

At every parent rebase commit, there may be conflicts in the child repo.

Does it make sense to do many rebases for each such commit?

What if the child commit requires a rebase --onto, and not an ordinary
rebase?

I think "rebase" has to be chosen manually due to these concerns -- so it
may make more sense to add --rebase or --merge as a flag.

On Tue, Sep 29, 2015 at 4:52 PM, Yair Chuchem notifications@github.com
wrote:

when rebasing, "git status" says "You are currently rebasing"


Reply to this email directly or view it on GitHub
#5 (comment)
.