Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

.gitignore cascaded negations not working correctly #196

Open
@rafitorres

Description

@rafitorres

Let's say I add the following rules to my .gitignore to ignore everything in the root except the wp-content directory:

/*
!.gitignore
!wp-content/

So far this works correctly (only .gitignore and wp-content/ are shown in the tree view). Now I add the following rules to ignore everything in the wp-content directory, except the plugins and themes directories

wp-content/*
!wp-content/plugins/
!wp-content/themes/

Before Atom 0.116.0, the plugins and themes directories were shown correctly in the tree view, but now the wp-content directory disappears completely. My machine's git (v2.0.0) parses the .gitignore correctly and sees changes in plugins and themes.

I see that 0.116.0 moved to libgit2 0.21.0. If this is what's causing this behavior I'll open an issue with them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions