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
Description
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.