I have three repositories: A, B, C (c++ code)
A and B are independent projects and both depends on C. The association has been made with git submodule
I create now a new project D that depends on A and B, so now C is referred two times
The project structure would be similar to the following:
D
|--A
| |
| C
|
|--B
|
C
Since different versions of D correspond to different versions of A and B I'd like to have a way to keep them synced while checking out between versions.
I was thinking about removing the submodule associations and switch to repo for all A, B and D. Does it make sense? Is there a better way to do it using only git?
Thank you