Skip to content

--ignore-dot does not ignore .rgignore #2198

@BurntSushi

Description

@BurntSushi

Discussed in #2197

Originally posted by balazser April 29, 2022
Why --ignore-dot switch ignores .ignore but not .rgignore? Although if .rgignore file presents in the parent dictionary it can be ignored with --ignore-parent.

Here is a test case:

$ mkcd /tmp/rg-2197
$ touch a b c
$ echo a > .ignore
$ echo b > .rgignore
$ rg --files
c
$ rg --files --no-ignore-dot
c
a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug.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