pub fn sync_hooks(
repo_root: &Path,
config: &HooksConfig,
) -> Result<bool, ReleaseError>Expand description
Sync .githooks/ with the hooks config. Returns Ok(true) if changes were made.
- Writes shim scripts for configured hooks
- Removes sr-managed shims no longer in config
- Backs up conflicting non-sr-managed hooks
- Updates the hash file
- Sets
core.hooksPath