Skip to content

Conversation

@AckslD
Copy link

@AckslD AckslD commented Dec 26, 2024

closes #1612

Let me know if this looks okay, if so I can add tests and update the docs.

@AckslD AckslD force-pushed the no-ignore-vsc-exclude branch from e59ab54 to 08c42d7 Compare December 26, 2024 12:24
Copy link
Collaborator

@tmccombs tmccombs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine to me.

But before merging it should have some tests and a changelog entry, and update the manpage.


///Show search results from files and directories that
///would otherwise be ignored by '.git/info/exclude'.
///Git ignore files are still respected unless --no-ignore-vsc is given.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
///Git ignore files are still respected unless --no-ignore-vsc is given.
///Git ignore files are still respected unless --no-ignore-vcs is given.

#[arg(long, overrides_with = "no_ignore_vcs", hide = true, action = ArgAction::SetTrue)]
ignore_vcs: (),

///Show search results from files and directories that
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Add space between the final "/" and thext of the comment

help = "Do not respect .git/info/exclude",
long_help
)]
pub no_ignore_vcs_exclude: bool,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call this "no_ignore_exclude" to match the name ripgrep uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Only ignore .git/info/exclude

2 participants