Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistDiffWorkflow.php
Show First 20 Lines • Show All 603 Lines • ▼ Show 20 Lines | private function runRepositoryAPISetup() { | ||||
} | } | ||||
$repository_api->setBaseCommitArgumentRules( | $repository_api->setBaseCommitArgumentRules( | ||||
$this->getArgument('base', '')); | $this->getArgument('base', '')); | ||||
if ($repository_api->supportsCommitRanges()) { | if ($repository_api->supportsCommitRanges()) { | ||||
$this->parseBaseCommitArgument($this->getArgument('paths')); | $this->parseBaseCommitArgument($this->getArgument('paths')); | ||||
} | } | ||||
$head_commit = $this->getArgument('head'); | |||||
if ($head_commit !== null) { | |||||
$repository_api->setHeadCommit($head_commit); | |||||
} | |||||
} | } | ||||
private function runDiffSetupBasics() { | private function runDiffSetupBasics() { | ||||
$output_json = $this->getArgument('json'); | $output_json = $this->getArgument('json'); | ||||
if ($output_json) { | if ($output_json) { | ||||
// TODO: We should move this to a higher-level and put an indirection | // TODO: We should move this to a higher-level and put an indirection | ||||
// layer between echoing stuff and stdout. | // layer between echoing stuff and stdout. | ||||
ob_start(); | ob_start(); | ||||
▲ Show 20 Lines • Show All 1,964 Lines • Show Last 20 Lines |