]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Don't send untracked files to lint or unit workflows when running 'arc diff'.
authorepriestley <epriestley@javelinjs.com>
Sat, 19 Feb 2011 00:52:27 +0000 (16:52 -0800)
committerepriestley <epriestley@javelinjs.com>
Sat, 19 Feb 2011 00:52:27 +0000 (16:52 -0800)
Summary:

Test Plan:

Reviewers:

CC:

src/workflow/diff/ArcanistDiffWorkflow.php

index c86258e4c899d228f10b576be6005947094ce582..1dfc9610fb29fb586977de519efc4c8017971b18 100644 (file)
@@ -423,6 +423,13 @@ EOTEXT
         $this->getArgument('paths', array()));
       $paths = $repository_api->getWorkingCopyStatus();
     }
+
+    foreach ($paths as $path => $mask) {
+      if ($mask & ArcanistRepositoryAPI::FLAG_UNTRACKED) {
+        unset($paths[$path]);
+      }
+    }
+
     return $paths;
   }