pub fn sync_to_hooks(
config: &Config,
hooks_dir: &Path,
force: bool,
) -> Result<(usize, usize)>Expand description
Write/remove hook scripts in hooks_dir to match config.
When force is true, pre-existing hooks that are not managed by githops
are overwritten instead of skipped.
Returns (installed_count, skipped_count).