Merge pull request #1959 from tmchow/osc/1958-ignore-parent

feat: add --ignore-parent option to override --no-ignore-parent
This commit is contained in:
Thayne McCombs authored and GitHub committed 2026-04-16 13:03:00 -06:00
commit 90e73d72df
2 files changed
+8

No files matched your search

+3
View File
@@ -1,5 +1,8 @@
# Unreleased
## Features
- Add `--ignore-parent` option to override `--no-ignore-parent`, see #1958 (@tmchow)
## Bugfixes
- Handle invalid working directories gracefully when using `--full-path`, see #1900 (@Xavrir).
+5
View File
@@ -102,6 +102,7 @@ pub struct Opts {
/// Show search results from files and directories that would otherwise be
/// ignored by '.gitignore', '.ignore', or '.fdignore' files in parent directories.
/// The flag can be overridden with --ignore-parent.
#[arg(
long,
hide_short_help = true,
@@ -110,6 +111,10 @@ pub struct Opts {
)]
pub no_ignore_parent: bool,
/// Overrides --no-ignore-parent
#[arg(long, overrides_with = "no_ignore_parent", hide = true, action = ArgAction::SetTrue)]
ignore_parent: (),
/// Do not respect the global ignore file
#[arg(long, hide = true)]
pub no_global_ignore_file: bool,