Rename (with compat alias) --no-ignore to --no-project-ignore

This commit is contained in:
Félix Saparelli 2022-01-16 17:34:06 +13:00
parent 26e0b60b7b
commit 2a1a386208
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
5 changed files with 10 additions and 6 deletions

View File

@ -101,7 +101,8 @@ pub fn get_args(tagged_filterer: bool) -> Result<ArgMatches<'static>> {
.arg(Arg::with_name("no-project-ignore")
.help_heading(Some(OPTSET_FILTERING))
.help("Skip auto-loading of project ignore files (.gitignore, .ignore, etc)")
.long("no-ignore"))
.long("no-project-ignore")
.alias("no-ignore")) // --no-ignore is deprecated (remove at v2)
.arg(Arg::with_name("no-default-ignore")
.help_heading(Some(OPTSET_FILTERING))
.help("Skip auto-ignoring of commonly ignored globs")

View File

@ -17,7 +17,7 @@ FLAGS:
--no-global-ignore Skip auto-loading of global or environment-wide ignore files
--no-meta Ignore metadata changes
--no-process-group Do not use a process group when running the command
--no-ignore Skip auto-loading of project ignore files (.gitignore, .ignore, etc)
--no-project-ignore Skip auto-loading of project ignore files (.gitignore, .ignore, etc)
-n, --no-shell Do not wrap command in a shell. Deprecated: use --shell=none instead.
--no-vcs-ignore Skip auto-loading of VCS (Git, etc) ignore files
-N, --notify Send a desktop notification when the command ends

View File

@ -17,7 +17,7 @@ FLAGS:
--no-global-ignore Skip auto-loading of global or environment-wide ignore files
--no-meta Ignore metadata changes
--no-process-group Do not use a process group when running the command
--no-ignore Skip auto-loading of project ignore files (.gitignore, .ignore, etc)
--no-project-ignore Skip auto-loading of project ignore files (.gitignore, .ignore, etc)
-n, --no-shell Do not wrap command in a shell. Deprecated: use --shell=none instead.
--no-vcs-ignore Skip auto-loading of VCS (Git, etc) ignore files
-N, --notify Send a desktop notification when the command ends

View File

@ -29,7 +29,7 @@ args=(
'(-w --watch)'{-w+,--watch=}'[Watch a specific directory]:path:_path_files -/'
'(-s --signal)'{-s+,--signal=}'[Send signal to process upon changes, e.g. SIGHUP]:signal'
'--force-poll=[Forces polling mode]:interval'
'--no-ignore[Skip auto-loading of ignore files (.gitignore, .ignore, etc.) for filtering]'
'--no-project-ignore[Skip auto-loading of project-local ignore files (.gitignore, .ignore, etc.) for filtering]'
'--no-default-ignore[Skip auto-ignoring of commonly ignored globs]'
'--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]'

View File

@ -84,8 +84,11 @@ Set the timeout between detected change and command execution, to avoid restarti
* `--no-vcs-ignore`:
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-project-ignore`, `--no-ignore` (deprecated alias):
Skip loading of project-local ignore files (include VCS ignore files). By default, watchexec loads .ignore, .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`.
Skip default ignore statements. By default, watchexec ignores common temporary files for you, for example `*.swp`, `*.pyc`, and `.DS_Store`, as well as the data directories of the VCS system in use (e.g. `.git` if you use Git, `.svn` for Subversion, etc).
* `--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.
@ -93,7 +96,7 @@ Skip loading of global ignore files. By default, watchexec loads $HOME/.gitignor
* `-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.
* `--print-events`, `--changes-only` (deprecated):
* `--print-events`, `--changes-only` (deprecated alias):
Prints the events (changed paths, etc) that have triggered an action to STDERR.
* `-N`, `--notify`: