I have following situation in my project:
There will be 2 source code repositories however each of them should have "shared" area for some part of code (potentially more than one).
Lets assume following structure of repositories and their folders (and files within these folders).
Repo1
- folderA
- folderB
- folderC
Repo2
- folderA
- folderD
- folderE
"folderA" should contain exactly same "copies" of files. So when I commit some change to Repo1/folderA and then checkout/update Repo2/folderA, I should be able to see these changes. Of course it would be great if it could work the same in opposite direction.
Unfortunately I cannot structure source code in another way and create some kind of shared library.
I'm looking for VCS that could help me with solving this problem in a best way (SVN, Git, ...)? Do you have any experience with this kind of setup and could you recommend something?