Add --no-global-ignore to completion and man

This commit is contained in:
Félix Saparelli 2022-01-15 15:57:40 +13:00
parent d70abeac6f
commit 97070c815c
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
2 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,8 @@ args=(
'--force-poll=[Forces polling mode]:interval'
'--no-ignore[Skip auto-loading of ignore files (.gitignore, .ignore, etc.) for filtering]'
'--no-default-ignore[Skip auto-ignoring of commonly ignored globs]'
'--no-vcs-ignore[Skip auto-loading of .gitignore files for filtering]'
'--no-global-ignore[Skip auto-loading of global or environment-wide ignore files]'
'--no-vcs-ignore[Skip auto-loading of VCS ignore files for filtering]'
'(-)1:command: _command_names -e'
'*::arguments:{ _comp_priv_prefix=( $cmd -n ${(kv)opt_args[-u]} ) ; _normal }'
)

View File

@ -82,11 +82,14 @@ Poll for changes every <interval> ms instead of using system-specific notificati
Set the timeout between detected change and command execution, to avoid restarting too frequently when there are many events; defaults to 100ms.
* `--no-vcs-ignore`:
Skip loading of version control system (VCS) ignore files. By default, watchexec loads .gitignore files in the current directory (or parent directories) and uses them to populate the ignore list.
Skip loading of version control system (VCS) ignore files. By default, watchexec loads .gitignore, .hgignore, and other such files in the current directory (or child directories as applicable) and uses them to filter change events.
* `--no-default-ignore`:
Skip default ignore statements. By default, watchexec ignores common temporary files for you, for example `*.swp`, `*.pyc`, and `.DS_Store`.
* `--no-global-ignore`:
Skip loading of global ignore files. By default, watchexec loads $HOME/.gitignore and other such global files and uses them to filter change events.
* `-v`, `--verbose`, `-vv`, etc:
Prints diagnostic and debugging messages to STDERR. Increase the amount of `v`s to get progressively more output: for bug reports use **three**, and for deep debugging **four** can be helpful.