pre-commit: more rules regarding branch commits

(That's the plan anyway.)