Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sections/new-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ installable package (gem, npm, pypi, etc.) or exposes an executable, it can be
used with pre-commit. Each git repo can support as many languages/hooks as you
want.

_new in 2.5.0_: `pre-commit` sets the `PRE_COMMIT=1` environment variable
during hook execution.

The hook must exit nonzero on failure or modify files.

A git repo containing pre-commit plugins must contain a `.pre-commit-hooks.yaml`
Expand Down
Loading