c++ - Alternatives to git submodule for projects using multiple repositories -
i have 3 repositories: a, b, c (c++ code)
a , b independent projects , both depends on c. association has been made git submodule
i create new project d depends on a , b, c referred 2 times
the project structure similar following:
d |--a | | | c | |--b | c since different versions of d correspond different versions of a , b i'd have way keep them synced while checking out between versions.
i thinking removing submodule associations , switch repo a, b , d. make sense? there better way using git?
thank you
if project
dcontribute repoa,b, can add them submodules projectd.but there no way checkout submodules versions @ same time when checkout version project
d. work around use related version ofda,btags, , execute script checkouta,brelated versions.such
v3.0dversion relatedv1.0ofa,v2.0ofb, can add tags versionv3.0.1.0ina,v3.0.2.0inb. when checkoutv3.0d, can run script checkouta,bversion startv3.0*.if project
dnot contribute repoa,b, can remove submodule associations. codea,bsubfolders projectd, versions of foldera, folderbcan sync version projectdtime.
Comments
Post a Comment