Skip to content

Ignored folders with negated subfolders cause the parent to be noticed #2579

@jspahrsummers

Description

@jspahrsummers

Steps:

Create a repository containing this file/folder structure:

foo/
    bar/
        inner.txt
    outer.txt

Add the following to the repository's .gitignore (verbatim):

foo
!foo/bar

Expected: Everything under foo will be ignored (per core Git).
Actual: Neither file is ignored. This appears to be a regression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions