title: git ls-files --modified lists deleted files as well
body: <pre><code>git ls-files --modified
  </code></pre>
  <p>is supposed to list only modified files. However, it includes deleted files as well.</p>
  <p>On the other hand,</p>
  <pre><code>git ls-files --deleted
  </code></pre>
  <p>lists only the deleted files, which is expected.</p>
  <p>Why are deleted files considered by git as modified when there is a separate command just to list deleted files?</p>
  <p>System info:</p>
  <pre><code>&gt; git --version
  git version 1.7.1
  
  &gt; lsb_release -a
  LSB Version:    :base-4.0-amd64:base-4.0-ia32:base-4.0-noarch:core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
  Distributor ID: CentOS
  Description:    CentOS release 6.8 (Final)
  Release:        6.8
  Codename:       Final
  
  &gt; uname -m
  x86_64
  
  &gt; echo $0
  /bin/tcsh
  </code></pre>