pub fn install(hook_name: &str) -> Result<()>
Install the git-side hook.
Returns an error if the hook is already installed or if file operations fail.