title: Is there a way to create a pre-commit hook that will reject the commit in case the new revision wont compile?
body: <p>We would like to implement a policy that will force developers to commit only changes that will compile.</p>
  
  <p>Is there a way to do such thing using pre-commit hook?  If not, I'll be happy to hear any recommendation or workaround that will maintain the source integrity.</p>