We have been developing a large python(3) codebase, and are now recruiting some newer people in the team. Some parts of the code are sensitive, and we want to give the new people selective access to the code.
The layout right now is:
mymodule:
secureSubmodule1
secureSubmodule2
unsecureSubmodule1
unsecureSubmodule2
etc.
The usual usage of people today is to checkout mymodule from a git repo (which contains all of the code), and then run something like
python3 -m mymodule.secureSubmodule1.script -- options
or
python3 -m mymodule.unsecureSubmodule1.script -- options
etc.
All current users are privileged to see all of mymodule.
Now, we want some new users to only be able to check out only the unsecure submodules, so that they see something like
mymodule:
unsecureSubmodule1
unsecureSubmodule2
and can only run
python3 -m mymodule.unsecureSubmodule1.script -- options
etc.
Is there a way to do this using git and python?