title: How can I get git to list all untracked files recursively?
body: <p>I am trying to get a list of untracked files to use programmatically.</p>
  
  <p>However I can't seem to get git to report untracked files inside untracked directories. It always just lists the lowest level directory that contains files.</p>
  
  <p>I've tried:</p>
  
  <pre><code>git status --untracked-files=all
  </code></pre>
  
  <p>and</p>
  
  <pre><code>git ls-files --others --exclude-standard
  </code></pre>
  
  <p>Staging any file in the directory makes git report all other files in the directory, but I don't really want to do that.</p>
  
  <p>Also, I could use bash to list all the files - but then I would have to get git to tell me which of those are gitignored. </p>
  
  <p>Is there any way to do this purely with git? Or otherwise an efficient way to do this with other tools?</p>