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; }