4 ms·
I have a custom script for my monorepo that circumvents sub-modules while getting most of their benefits. Basically, on git pull it goes through and finds all
by seph-reed 7y ago
I have a custom script for my monorepo that circumvents sub-modules while getting most of their benefits.
Basically, on git pull it goes through and finds all the folders with `.x_git`, renames them to `.git` and pulls. On push it does the inverse. My submodules are really just copies of one small part of the monorepo, but it allows me to have a monorepo with some parts of it being public.
So far it's been amazing.. there's no real line between sub-repos and sub-folders, if I can push a commit that modifies many with a single PR, it's obvious that monorepo is for internal stuff while the public repo is for public facing discussions... I really like it.