From: epriestley Date: Sat, 19 Feb 2011 00:52:27 +0000 (-0800) Subject: Don't send untracked files to lint or unit workflows when running 'arc diff'. X-Git-Tag: conduit-4~398 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=c921e20272b9a48a66657fac10dfae2d9a756e8a;p=arcanist.git Don't send untracked files to lint or unit workflows when running 'arc diff'. Summary: Test Plan: Reviewers: CC: --- diff --git a/src/workflow/diff/ArcanistDiffWorkflow.php b/src/workflow/diff/ArcanistDiffWorkflow.php index c86258e4..1dfc9610 100644 --- a/src/workflow/diff/ArcanistDiffWorkflow.php +++ b/src/workflow/diff/ArcanistDiffWorkflow.php @@ -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; }