]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use --no-ext-diff in `arc land` call to `git diff`
authorepriestley <git@epriestley.com>
Sat, 6 Aug 2016 13:37:23 +0000 (06:37 -0700)
committerepriestley <git@epriestley.com>
Sat, 6 Aug 2016 16:00:01 +0000 (09:00 -0700)
Summary:
Fixes T11435. This isn't a perfect solution since there's a little code duplication, but a perfect solution is probably a bit more involved.

See T11435 for some discussion. In particular, most `git diff` commands already get this flag via `ArcanistGitAPI->getDiffBaseOptions()`.

Test Plan: Will land this change.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11435

Differential Revision: https://secure.phabricator.com/D16375

src/land/ArcanistGitLandEngine.php

index 0e7985097b01e8c4a9469b730ee45f980aaba3ca..12b90548722b7b82ff3a505ca3c3de9dc32b7dea 100644 (file)
@@ -181,7 +181,10 @@ final class ArcanistGitLandEngine
           $this->getTargetFullRef()));
     }
 
-    list($changes) = $api->execxLocal('diff HEAD --');
+    // TODO: This could probably be cleaner by asking the API a question
+    // about working copy status instead of running a raw diff command. See
+    // discussion in T11435.
+    list($changes) = $api->execxLocal('diff --no-ext-diff HEAD --');
     $changes = trim($changes);
     if (!strlen($changes)) {
       throw new Exception(