I do not answer your question, but I believe that this is not a very useful feature for resolving to VCS. People should know where they are allowed to commit, people should reconsider their obligations, and if someone commits where they should not:
- You will catch him in the review
- You roll back the change (what VCS is for)
- You will find out why: was it a mistake or intentionally?
If you are concerned that people will make unauthorized changes, you will have a social problem that the permissions will not be fixed. If you are worried that people accidentally make changes to the wrong code, you will have another social problem (lack of review) that the permissions will also not be fixed.
source share