title: How do I list just the files that would be committed?
body: <p>Is there any way to get a list of files that will be committed when I type the following?</p>
  
  <pre><code>git commit -m "my changes"
  </code></pre>
  
  <p>git status lists too much.  I could strip out all the words, but I'd rather not.  And I don't want to be told about untracked files.</p>
  
  <p>I've tried </p>
  
  <pre><code>git ls-files -md
  </code></pre>
  
  <p>but that doesn't show files that have been recently added, but not yet committed.</p>
  
  <p>I'm looking for the same output you'd get from </p>
  
  <pre><code>svn status -q
  </code></pre>
  
  <p>For example
  $ svn status -q<br>
  A       file.py<br>
  M       dir/database.py<br>
  M       start.py  </p>