After several years of separation, we're merging two large git repositories (FOO and BAR). Unifying the build scripts requires some non-trivial changes, so we expect this effort to stretch over a few days while we test those changes. During that time, we expect several changes to both original repos. Here's what I'd like to end up with:
- File/directory layout in the final repo should mimic the structure of FOO, but with a new BAR directory that contains the contents of the original BAR repo
- History should be retained for both repositories
- We want to easily merge changes from the original repos into the new repo, while we iron out the build scripts
The first two are no problem (though, as usual, there are different approaches). It's the third that has me stumped. How can I merge daily changes from the old repos, particularly BAR, into the new structure? Or have I missed a better approach entirely?