<p dir="auto">Example <code class="notranslate">.gitignore</code>:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/components/
!/components/foo/
!/components/bar/"><pre class="notranslate">/components/
<span class="pl-k">!</span>/components/foo/
<span class="pl-k">!</span>/components/bar/</pre></div>
<p dir="auto">Ideally, only <code class="notranslate">components/foo</code> and <code class="notranslate">components/bar</code> would be visible in tree view when "Exclude VCS Ignored Paths" is enabled</p>
<p dir="auto">Let's say I add the following rules to my <code class="notranslate">.gitignore</code> to ignore everything in the root except the <code class="notranslate">wp-content</code> directory:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/*
!.gitignore
!wp-content/"><pre class="notranslate"><code class="notranslate">/*
!.gitignore
!wp-content/
</code></pre></div>
<p dir="auto">So far this works correctly (only <code class="notranslate">.gitignore</code> and <code class="notranslate">wp-content/</code> are shown in the tree view). Now I add the following rules to ignore everything in the <code class="notranslate">wp-content</code> directory, except the <code class="notranslate">plugins</code> and <code class="notranslate">themes</code> directories</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wp-content/*
!wp-content/plugins/
!wp-content/themes/"><pre class="notranslate"><code class="notranslate">wp-content/*
!wp-content/plugins/
!wp-content/themes/
</code></pre></div>
<p dir="auto">Before Atom 0.116.0, the plugins and themes directories were shown correctly in the tree view, but now the <code class="notranslate">wp-content</code> directory disappears completely. My machine's git (v2.0.0) parses the .gitignore correctly and sees changes in <code class="notranslate">plugins</code> and <code class="notranslate">themes</code>.</p>
<p dir="auto">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.</p>