No.
If you need different permissions on different chunks of code, you need to store them in different repos.
Thanks for the response. Unfortunately we are unable to have separate repositories due to that causing us to mirror the branch structure between the two repos. After further research I believe that the only option would be through creating pre-commit hooks and doing some sort of user look up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you trying to block you untrusted users from reading the code or only from editing it?
You can put write restrictions on certain branches - such as master and develop - so that it has to go through an authorized person before their changes are merged onto those branches.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.