deploy repos hooks automatically, possibly through myrepos

just a thought: we could use myrepos "fixup" commands to automatically configure hooks (in an idempotent way) to various repos we have.

this could be as simple as rewiring the .git/hooks path to point to somewhere inside the repository for repositories that do have that configuration, see this answer for an example. there are obvious security issues with this (as operating on the git repo now executes code from the repo, which might be unexpected, but is actually a pretty common flaww in git anyways) so to be handled with care.

many other alternatives are documented in the service/documentation page, grep for pre-commit.