Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update --hidden help section to define hidden #1849

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

dbjorge
Copy link
Contributor

@dbjorge dbjorge commented Apr 15, 2021

Fixes #1847

If you'd prefer to leave out the --no-ignore-dot part, I'm happy to update the PR accordingly

Thanks!

@@ -1971,6 +1975,9 @@ fn flag_no_ignore_dot(args: &mut Vec<RGArg>) {
"\
Don't respect .ignore files.

This does **not** affect whether ripgrep will ignore files and directories
Copy link
Owner

Choose a reason for hiding this comment

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

Just looking at other text, I think you just want *not* here instead of **not**. (This unfortunately isn't Markdown. It's AsciiDoc that gets converted into roff.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, fixed!

@@ -1971,6 +1975,9 @@ fn flag_no_ignore_dot(args: &mut Vec<RGArg>) {
"\
Don't respect .ignore files.

This does **not** affect whether ripgrep will ignore files and directories
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is technically inaccurate in that a .ignore file with negation patterns could affect whether ripgrep ignores dotfiles, but it felt overly verbose to clarify that as part of the note. If you have a better wording proposal that is more accurate, I'd be happy to update accordingly

@BurntSushi BurntSushi merged commit 92286ad into BurntSushi:master Apr 15, 2021
@dbjorge
Copy link
Contributor Author

dbjorge commented Apr 15, 2021

Thanks very much for the quick review!

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.

Help text for --hidden should clarify what "hidden" means
2 participants