pub fn hooks_dir() -> Result<PathBuf>
Returns the hooks directory, respecting core.hooksPath if configured.
core.hooksPath