3 ms·
Whats the current state of git submodules? It seems like you could get some of the benefits of mono-repos in that you can reference dependency projects directl
by jayd16 7y ago
Whats the current state of git submodules? It seems like you could get some of the benefits of mono-repos in that you can reference dependency projects directly like a mono-repo. You can, in theory, treat many projects like a single code base.
I don't see it used very often though. Why not?
- avisser 7y agoEven with submodules it's still a PR per repo. Global, atomic changes are super powerful.
- jayd16 7y agoGood point! Hmm. Maybe git(hu|la)b could solve this with some kind of pull request batching.
- likeliv 7y agoThere is another tool called git-subtree that should solve these problems, I think. But I've never seen it in use
- Skunkleton 7y agogit subtree is just a wrapper around subtree merges, I don't think they solve the same problem as submodules.
- vogre 7y agoBecause if some change requires you to make commits to 3 repos, submodule approach will require to make 4 commits instead. Very annoying.