Rob Hudson  committed ce10b9e


Added --diff-filter to ignore deleted files.

  • Participants
  • Parent commits 20865ae

Comments (0)

Files changed (1)

File flake8/

         the files to the index before running a commit, e.g., git commit -a
     :returns: total number of errors if strict is True, otherwise 0
-    gitcmd = "git diff-index --cached --name-only HEAD"
+    gitcmd = "git diff-index --cached --name-only --diff-filter=ACMRTUXB HEAD"
     if lazy:
         # Catch all files, including those not added to the index
         gitcmd = gitcmd.replace('--cached ', '')