I just learned how to do octopus merges in GitHub.
I'm working with a system where we create a patchwork of patches using a common ancestor. We'll call common ancestor VersionA. VersionB and VersionC are branched and modified from VersionA. I would like to derive two patches: VersionAB and VersionAC.
Using git, I can do a
git branch 3Way VersionA
git checkout 3Way
git merge VersionB and VersionC
gives me a VersionABC
As long as the common ancestor is setup correctly, the resulting files are auto-merged using the git <<<< and ==== and >>>> methods.
Is there a way I can apply the same setup/logic but using patch files? I think I can derive patch files from the git 'octopusmerge', but the only way I got to the octopusmerge of the mods was via git. Is there a way to arrive at VersionABC using source files of the branches, and then try to derive a VersionABC from the patch files?
We wanted to include a tool where we work with raw data, extract patch file differences from various mods that are branches of VersionA, then combine those patch files somehow in a manner where we'd be able to achieve VersionABC.
Closest answer I have is interdiff, but if that's my answer. How do I setup my environment (aka, what steps and in what order, and in what way do I run the patch and interdiff commands?)