You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/configuration.md
+2
Original file line number
Diff line number
Diff line change
@@ -963,6 +963,8 @@ You can change the CWD for the command you execute using `root` option.
963
963
964
964
This is useful when you execute some `npm` or `yarn` command but the `package.json` is in another directory.
965
965
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.
0 commit comments