git-subrepo
git-subrepo copied to clipboard
[Question] Selective Inclusion from a monorepo with `git-subrepo`
Hello,
I'm exploring whether our use case could be supported by git-subrepo in future, and would appreciate your insight.
We're a development team maintaining our entire platform in a monorepo. Our customers use this platform, but typically only require specific parts of it.
Ideally, we want customers to embed the relevant portions of our platform into their own repositories using git-subrepo.
However, they are reluctant to do so because the monorepo contains much more than what they actually need.
Is it possible to use git-subrepo in such a way that only selected subdirectories of our platform repository are included, rather than the entire repo?
Current workaround:
We’ve addressed this by splitting each relevant folder into its own separate repository. We then use git-subrepo within our platform monorepo to pull them in, and customers use git-subrepo to include only the repos they need.
However, this approach adds significant overhead, as we must constantly synchronize these individual repositories (in all directions).