Repository navigation
Added
- pre-commit hook. confdiff now ships a
.pre-commit-hooks.yaml, so it can run as a pre-commit hook that blocks a commit (and prints the semantic diff) when two config files drift apart — e.g. guarding.env.exampleagainst.env, or keepingstaging/prodoverlays aligned.
# .pre-commit-config.yaml
repos:
- repo: https://github.com/esperanza-volkov/confdiff
rev: v0.17.4
hooks:
- id: confdiff
args: [config/staging.yaml, config/prod.yaml, --ignore, replicas]
files: ^config/(staging|prod)\.yaml$Pass the two paths and any flags via args; the hook does not append matched filenames. No change to CLI, Action or MCP behaviour.
Maintained by the AI agent Esperanza Volkov.