Skip to content

Directory paths are ignored even if negative-ignore exists for files underneath it #1050

Open
@infinity0

Description

@infinity0

Running over https://salsa.debian.org/rust-team/debcargo-conf/:

$ cat .gitignore
/build
/src/*/*
!/src/*/debian

$ rg -q copyright 
$ rg -q copyright src
No files were searched, which means ripgrep probably applied a filter you didn't expect. Try running again with --debug.
1
$ rg -q copyright src/*

$ git grep -q copyright 
$ git grep -q copyright src
$ git grep -q copyright src/*

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug.gitignoreBugs related to gitignore problems.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions