feat(install-hooks): Add basic tool for installing hooks #5

Merged
noah.knegt merged 3 commits from add-setup-hook-tool into main 2026-01-19 15:41:31 +01:00
Owner
No description provided.
Introduces a new CLI tool to install and manage Git hooks via symlinks,
allowing hooks to be version controlled and easily shared across teams.

Features symlink-based installation, automatic hook discovery, safe
backups of existing hooks, clean uninstallation, and status listing.

Includes comprehensive documentation and example hooks for pre-commit
validation, conventional commit message checking, and pre-push testing
across multiple project types (Rust, Node.js, Python, Go).
Support recursive hook installation and fix bare repo handling
Some checks failed
Code style / cargo-check (pull_request) Successful in 2m11s
Code style / cargo-fmt (pull_request) Successful in 2m13s
Code style / clippy (pull_request) Failing after 2m9s
9a67f60825
- Use `git rev-parse --git-path hooks` instead of `--git-dir` to
  properly handle bare repos and worktrees
- Add recursive directory traversal to support nested hook structures
- Create subdirectories in target when installing hooks from nested
  source directories
- Display relative paths from hooks root for better clarity
- Reorder anyhow imports alphabetically
Fix clippy warnings
All checks were successful
Code style / cargo-check (pull_request) Successful in 1m59s
Code style / clippy (pull_request) Successful in 1m57s
Code style / cargo-fmt (pull_request) Successful in 2m7s
cde6cfbb13
noah.knegt deleted branch add-setup-hook-tool 2026-01-19 15:41:31 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
noah.knegt/repo-utils!5
No description provided.