Hacker News new | ask | show | jobs
by otibom 4046 days ago
Could an alternative be to use individual repos and also a meta-repo? The metarepo contents are the commit ids of each individual repo.

So let's say you want to update a repo which depends on another one:

Update project A, commit changes.

# Your product hasn't changed at this point

Update project B, commit changes.

# Your product hand't changed at this point

In metarepo, checkout to the new 'master' branches of Projects A and B, commit that to metarepo

# Your product is now updated!

1 comments

This sounds a lot like git submodules.
Or Mercurial subrepos.

Both of which are far greater of a pain in the ass than monorepos.

Or git subtree