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
d
contribute 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 ofd
a
,b
tags, , execute script checkouta
,b
related versions.such
v3.0
d
version relatedv1.0
ofa
,v2.0
ofb
, can add tags versionv3.0.1.0
ina
,v3.0.2.0
inb
. when checkoutv3.0
d
, can run script checkouta
,b
version startv3.0*
.if project
d
not contribute repoa
,b
, can remove submodule associations. codea
,b
subfolders projectd
, versions of foldera
, folderb
can sync version projectd
time.
Comments
Post a Comment