Is there a way to automatically merge (interdiff) conflicts between 2 head branches and 1 base branch?
I was trying to do it at the patch level
VersionA is my base
VersionB is branched from VersionA
VersionB has an additional mod applied, Base+ModB
VersionC is branched from VersionA
- VersionC has an additional mod applied, Base+ModC
Manually applying patches, I can derive a A:B and a A:C patch, and apply them to version A sequentially. However, if the two conflict in the areas they apply in (such as editing the same area), they break.
I've tried various tools like interdiff and combinediff to create a combined patch manually to no success (I'm on windows, and interdiff is cygwin compatible, but I don't know if UNC are an issue, so far I don't think so), specificying such as outputs as Unified vs Contextual due to interdiff/combinediff requirements.
So... is there a way I can do a Version A as my Base, and a combined changes of version A:B && A:C as my head? And do some sort of 3-way pull request?
If any conflicts arise, I would hope git would be able to address them intelligently by doing it's infamous >>>> and ===== and <<<<< merging of conflicts, which is completely acceptable at this point.
Ultimately, I'd like to figure out a way to do this on a patch level by combining patches. I see that git(hub) has some options for working with 3 way patches and emailing patches with git apply and git patch and git format-patch.
this also helped: Git pull gives conflicts with octopus strategy
Although I'm not pulling from remote and pull is merge when working locally (the command works the exact same pretty much).