Expand description
Automatic git hook management.
Keeps .githooks/ in sync with the hooks section of sr.yaml.
Hook scripts are thin shims that delegate to sr hook run <name>.
Functionsยง
- needs_
sync - Check whether hooks need syncing (cheap hash comparison).
- sync_
hooks - Sync
.githooks/with the hooks config. ReturnsOk(true)if changes were made.