Skip to main content

Module hooks

Module hooks 

Source
Expand description

Hooks visibility and maintenance (resq hooks doctor/update/status). resq hooks — visibility and maintenance for installed git hooks.

  • resq hooks doctor reports drift between installed .git-hooks/<file> and the canonical content embedded in this binary.
  • resq hooks update rewrites the canonical hooks (preserving any local-* files the repo committed).
  • resq hooks status prints a one-line summary suitable for shells.

Structs§

HooksArgs
Arguments for the hooks command.

Enums§

HooksCommands
Hooks subcommands.

Functions§

canonical_count
Returns the canonical hook count — used by docs/tests.
run
Executes a hooks subcommand.