mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-19 18:28:38 +01:00
Use --no-ext-diff in arc land
call to git diff
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
This commit is contained in:
parent
3aa47195ef
commit
e5be662d15
1 changed files with 4 additions and 1 deletions
|
@ -181,7 +181,10 @@ final class ArcanistGitLandEngine
|
||||||
$this->getTargetFullRef()));
|
$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);
|
$changes = trim($changes);
|
||||||
if (!strlen($changes)) {
|
if (!strlen($changes)) {
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
|
|
Loading…
Add table
Reference in a new issue