From c36b4ceb1849ef666a2b94aeeb70c84a1c7da717 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 5 Mar 2015 14:44:59 -0800 Subject: [PATCH] Check for untracked files in order to fire untracked file prompt Summary: Fixes T7465. I think I just missed this when untangling the old logic. Test Plan: Ran `arc diff` with //only// untrakced files, saw warning. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T7465 Differential Revision: https://secure.phabricator.com/D11990 --- src/workflow/ArcanistWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php index e0efb972..03a7d3b2 100644 --- a/src/workflow/ArcanistWorkflow.php +++ b/src/workflow/ArcanistWorkflow.php @@ -881,7 +881,7 @@ abstract class ArcanistWorkflow extends Phobject { } $should_commit = false; - if ($unstaged || $uncommitted) { + if ($untracked || $unstaged || $uncommitted) { // NOTE: We're running this because it builds a cache and can take a // perceptible amount of time to arrive at an answer, but we don't want -- 2.43.0