sapling
sapling copied to clipboard
Git submodule replacement recommendation
I have an existing monorepo that uses git that's nicely(-ish) set up already. One pain point with git has been trying to share parts of my repo with others (occasionally) without sharing the whole thing. I have been able to use submodules and subtrees for the most part.
What would be a reasonable way to handle that kind of situation without just avoiding it in the first place?
Side note: I noticed sapling wouldn't operate on an already checked out git repo, so I checked it out from source, figured out what files it generated, and copied the .sl folder into my existing checkout. I see that there are a lot of git artifacts that are not ignored by sapling. Is there a way to hide those, eg .saplingignore?
Just to be clear, the use-case is:
- There is a repo called "A" that includes submodule repos "B", "C".
- Alice has access to "B" but not "C".
And you're looking for:
- Alice can use "A", and initialize submodule "B" but keep "C" uninitialized.
Not:
- Create another repo "A2" for Alice to use. The "A2" repo only includes submodule "B", not "C"
?
Or are you looking for subtree
or submodule
commands equivalent?