mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-23 13:08:17 +01:00
Handle arc diff --background 1 --
Summary: We currently insert background parameters to end which causes ignoring them if there is '--'. Test Plan: $ arc diff --background 1 -- HEAD^ Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3497
This commit is contained in:
parent
3bbf9ccc3d
commit
589bccb716
1 changed files with 5 additions and 2 deletions
|
@ -373,10 +373,13 @@ EOTEXT
|
||||||
|
|
||||||
if ($this->getArgument('background')) {
|
if ($this->getArgument('background')) {
|
||||||
$argv = $_SERVER['argv'];
|
$argv = $_SERVER['argv'];
|
||||||
|
// Insert after `arc diff`.
|
||||||
|
array_splice($argv, 2, 0, array('--recon', '--no-diff'));
|
||||||
if (!PhutilConsoleFormatter::getDisableANSI()) {
|
if (!PhutilConsoleFormatter::getDisableANSI()) {
|
||||||
$argv[] = '--ansi';
|
// Insert after `arc`.
|
||||||
|
array_splice($argv, 1, 0, array('--ansi'));
|
||||||
}
|
}
|
||||||
$lint_unit = new ExecFuture('%Ls --recon --no-diff', $argv);
|
$lint_unit = new ExecFuture('%Ls', $argv);
|
||||||
$lint_unit->write('', true);
|
$lint_unit->write('', true);
|
||||||
$lint_unit->start();
|
$lint_unit->start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue