Skip to main content

Module config

Module config 

Source

Structs§

Command
CommandCache
Per-command cache configuration.
Config
GlobalCache
Global cache settings.
HookConfig
Hooks
All supported git hooks. Configure any hook by adding its name as a key.
RefEntry
A reference to a named definition in the definitions section.

Enums§

CommandEntry
A command entry in a hook’s command list: either an inline command definition or a reference to a named definition ($ref: name).
DefinitionEntry
A reusable command definition: a single command mapping or a list of commands.

Constants§

CONFIG_FILE
SCHEMA_FILE
SCHEMA_JSON
The JSON Schema for githops.yaml, embedded at compile time. Use write_schema to materialize it on disk.

Functions§

validate_depends_pub
write_schema
Write the embedded JSON Schema to <dir>/.githops/githops.schema.json if it is absent or differs from the embedded version.