Skip to content

Ripgrep ignores files found in the parent directories .ignore file #2479

@scottchiefbaker

Description

@scottchiefbaker

What version of ripgrep are you using?

ripgrep 13.0.0

How did you install ripgrep?

Installed directly from the GitHub release

What operating system are you using ripgrep on?

CentOS Stream 8

Describe your bug.

Ripgrep is ignoring files found in an .ignore file in the parent directory?

What is the expected behavior?

I was ripgreping for a pattern I knew was in my source, and wasn't getting a result. I immediately checked .gitignore and .ignore files in the current directory and there was nothing that would have filtered out my source. Testing again with --no-ignore showed the content I was expecting.

I'm assuming this is the intended behavior? I couldn't find any reference in the docs to ripgrep going up the tree looking for .ignore files. I would maybe expect it to look in each sub directory, but not go up. If this is not a bug then the documentation should be updated to indicate that

Metadata

Metadata

Assignees

No one assigned

    Labels

    docAn issue with or an improvement to documentation.rollupA PR that has been merged with many others in a rollup.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions