Skip to content

Apache Lucene open-source search software

Update documentation in main branch for installing precommit check whe you want to work on older release branches (#15862)

Uwe Schindler2e3f36a5d588
diff --git a/help/precommit.txt b/help/precommit.txt
index 5bb7413069c..b9577aa472e 100644
--- a/help/precommit.txt
+++ b/help/precommit.txt
@@ -7,14 +7,18 @@ Checks use the prek tool:
* src: https://github.com/j178/prek
* docs: https://prek.j178.dev/
-To run checks before committing:
+To run checks automatically before committing:
uvx prek
To install a precommit hook so this happens automatically:
uv tool install prek
-prek install
+prek install --allow-missing-config
+
+Please note: The "--allow-missing-config" option is only required if you
+intend to also work on older release branches that do not yet have support
+for prek.
To exhaustively force-check all files (like CI does):