title: List files ignored by git exclusively by the rules in .git/info/exclude
body: <p>My repo has a big <code>.gitignore</code>. I also have some rules in my <code>.git/info/exclude</code> because I do not want my workflow to affect the repo: I use certain tools, and certain processes which generate files, that I do not want to neither be commited to the repo, nor be listed in the <code>.gitignore</code>. Those are my &quot;private ignored files&quot;.</p>
  <p>In a recent project, I have experienced a funny situation: running some tests with some excluded files present break the tests in strange ways. Therefore, before I run the tests (which take hours to run), I need to make sure that I got rid of annoying private files.</p>
  <p>Listing all excluded files is not an option:</p>
  <pre><code>git ls-files --other
  </code></pre>
  <p>This produces a list too big for being of any use.</p>
  <p>And this:</p>
  <pre><code>git ls-files --other --exclude-standard
  </code></pre>
  <p>Does not list files excluded via the rules of <code>.git/info/exclude</code> (or via <code>.gitignore</code>)</p>
  <p>This does the opposite of what I want:</p>
  <pre><code>git ls-files -o -X .git/info/exclude
  </code></pre>
  <p>Lists all ignore files <strong>except</strong> those in <code>.git/info/exclude</code></p>
  <p>This goes in the right direction:</p>
  <pre><code>git ls-files -o -X .gitignore
  </code></pre>
  <p>But then I need to find all <code>.gitignore</code> in all folders manually (the repo is very large and has lots of <code>.gitignore</code>)</p>
  <p>This is nice:</p>
  <pre><code>git check-ignore -v *
  </code></pre>
  <p>But is not recursive, and there is no <code>recurse</code> option.</p>
  <p>I assume I could diff these two:</p>
  <pre><code>git ls-files -o
  git ls-files -o -X .git/info/exclude
  </code></pre>
  <p>But really!? is there no better way to list the files excluded by one particular rule file?</p>
  <h2>EDIT</h2>
  <p>This is the closer I get:</p>
  <pre><code>find . -type f | git check-ignore -v --stdin | grep '\.git/info/exclude'
  </code></pre>
  <p>It only lists files (which I think is what <code>git</code> tracks anyway), and it is slow. I would expect an internal <code>git</code> command to be faster.</p>