From 97070c815cfc689aefd64896dadf14a2309fd623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Sat, 15 Jan 2022 15:57:40 +1300 Subject: [PATCH] Add --no-global-ignore to completion and man --- completions/zsh | 3 ++- doc/watchexec.1.ronn | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/completions/zsh b/completions/zsh index 5adcb48..e6837e3 100644 --- a/completions/zsh +++ b/completions/zsh @@ -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 }' ) diff --git a/doc/watchexec.1.ronn b/doc/watchexec.1.ronn index 02182e8..ebe46f9 100644 --- a/doc/watchexec.1.ronn +++ b/doc/watchexec.1.ronn @@ -82,11 +82,14 @@ Poll for changes every 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.