Skip to content

Commit d527c1f

Browse files
committed
docs: update info about root option
1 parent 91caa53 commit d527c1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/configuration.md

+2
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,8 @@ You can change the CWD for the command you execute using `root` option.
963963

964964
This is useful when you execute some `npm` or `yarn` command but the `package.json` is in another directory.
965965

966+
For `pre-push` and `pre-commit` hooks and for the custom `files` command `root` option is used to filter file paths. If all files are filtered the command will be skipped.
967+
966968
**Example**
967969

968970
Format and stage files from a `client/` folder.

0 commit comments

Comments
 (0)