fail_on_changes_diff
fail_on_changes_diff
Default: outputs diff only in CI
When fail_on_changes triggers, lefthook can optionally print a diff of the detected changes. Set this boolean to explicitly enable or disable the diff output regardless of environment.
Example
# lefthook.yml
pre-commit:
parallel: true
fail_on_changes: "always"
fail_on_changes_diff: true
commands:
lint:
run: yarn lint
test:
run: yarn test