pub fn install(dir: &Path, with_check: bool) -> Result<PathBuf>
Install (or update) the managed block in .git/hooks/pre-commit. Returns the path to the hook file.
.git/hooks/pre-commit