Expand description
Git hooks installation and management
Provides automatic installation of pre-commit and pre-push hooks integrated with cargo make workflow.
§Features
- Auto-detection: Detects if in git repository
- Smart installation: Skips if hooks already installed
- Cross-platform: Works on Unix and Windows
- Verification: Validates hooks after installation
§Hooks Installed
- pre-commit: Fast validation (cargo make check + format)
- pre-push: Full validation (cargo make pre-commit)
Structs§
Functions§
- get_
hooks_ dir - Get the .git/hooks directory path
- install_
git_ hooks - Install all git hooks
- install_
hook - Install a single git hook
- is_
git_ repo - Check if a directory is a git repository
- is_
hook_ installed - Check if a hook is already installed