Skip to main content

standard_githooks/
lib.rs

1//! Git hooks file format parsing, shim generation, and execution model.
2//!
3//! Owns the `.githooks/<hook>.hooks` file format. Can read/write hook files
4//! and generate shim scripts. Does not execute commands, run git operations,
5//! or produce terminal output.
6
7mod glob;
8mod parse;
9mod run;
10mod shim;
11
12pub use glob::matches_any;
13pub use parse::{HookCommand, Prefix, parse};
14pub use run::{HookMode, default_mode, substitute_msg};
15pub use shim::{KNOWN_HOOKS, generate_hooks_template, generate_shim};