Skip to content

Commit 87bce67

Browse files
Deployed to github pages
1 parent 62b42c1 commit 87bce67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ <h2 id="updating-hooks-automatically"> Updating hooks automatically <small><a
354354
installable package (gem, npm, pypi, etc.) or exposes an executable, it can be
355355
used with pre-commit. Each git repo can support as many languages/hooks as you
356356
want.</p>
357+
<p><em>new in 2.5.0</em>: <code>pre-commit</code> sets the <code>PRE_COMMIT=1</code> environment variable
358+
during hook execution.</p>
357359
<p>The hook must exit nonzero on failure or modify files.</p>
358360
<p>A git repo containing pre-commit plugins must contain a <code>.pre-commit-hooks.yaml</code>
359361
file that tells pre-commit:</p>

0 commit comments

Comments
 (0)