twosigma / git-meta

Repository for the git-meta project -- build your own monorepo using Git submodules
http://twosigma.github.io/git-meta
BSD 3-Clause "New" or "Revised" License
216 stars 50 forks source link

[question] Is multiple "meta" repos possible/supported? #860

Open jhdub23 opened 2 years ago

jhdub23 commented 2 years ago

Is it possible to have more than one "meta" repo? For example, underlying repos A B C D:

meta_repo1 contains: A B C meta_repo2 contains: B C D

Thanks,

Jay

lordmauve commented 2 years ago

Not in any useful way.

Different meta repos could reference the same module, but the meta repo's refs (tags/branches) are used instead of refs in the submodules themselves. So different meta repos would see independent histories in the submodules.

jhdub23 commented 2 years ago

Different histories are actually desired. meta_repo1 and meta_repo2 would be independent. The important thing is that they don't interfere with each other in the common submodules.