From c921e20272b9a48a66657fac10dfae2d9a756e8a Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 18 Feb 2011 16:52:27 -0800 Subject: [PATCH] Don't send untracked files to lint or unit workflows when running 'arc diff'. Summary: Test Plan: Reviewers: CC: --- src/workflow/diff/ArcanistDiffWorkflow.php | 7 +++++++ 1 file changed, 7 insertions(+) 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; }