Re-exports§
pub use crate::constants::HOOK_EVENTS;
Structs§
- Hook
Entry - A single hook entry.
Functions§
- add_
hook - Add a new hook for an event.
- get_
hooks - Get hooks for a specific event.
- load_
hooks_ config - Load hooks configuration from the repository.
- normalize_
event_ name - Normalize hook event names: accept kebab-case aliases. e.g., “post-create” → “worktree.post_create”, “pre-merge” → “merge.pre”
- remove_
hook - Remove a hook by event and ID.
- run_
hooks - Run all enabled hooks for an event.
- save_
hooks_ config - Save hooks configuration.
- set_
hook_ enabled - Enable or disable a hook.