Say I'm working on a project and I know that I've completed a specific class and that it should not be edited again, ever. How can I lock this class so no more commits on it can happen? I've tried locking it, but that only lasts one commit and still allows me to edit it.
Reasoning:
I have a class that performs one thing, and one thing only. It manages X part of the database. X will not change, therefor the class will not have to change. Any changes could be hazardous and introduce bugs which are not necessary. For sake of example this is one class in a project containing a googol (1.0 x 10^100) of classes. Branching for one minor class would be overly complicated, especially if half the classes were like this, you'd wind up with half a googol branches, at least.