Differential D21864 Diff 52157 src/applications/diffusion/conduit/DiffusionHistoryQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionHistoryQueryConduitAPIMethod.php
Show All 39 Lines | protected function getResult(ConduitAPIRequest $request) { | ||||
); | ); | ||||
} | } | ||||
protected function getGitResult(ConduitAPIRequest $request) { | protected function getGitResult(ConduitAPIRequest $request) { | ||||
$drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
$repository = $drequest->getRepository(); | $repository = $drequest->getRepository(); | ||||
$commit_hash = $request->getValue('commit'); | $commit_hash = $request->getValue('commit'); | ||||
$against_hash = $request->getValue('against'); | $against_hash = $request->getValue('against'); | ||||
$offset = $request->getValue('offset'); | |||||
$limit = $request->getValue('limit'); | |||||
$path = $request->getValue('path'); | $path = $request->getValue('path'); | ||||
if (!strlen($path)) { | if ($path === null || !strlen($path)) { | ||||
$path = null; | $path = null; | ||||
} | } | ||||
$offset = $request->getValue('offset'); | if ($against_hash !== null && strlen($against_hash)) { | ||||
$limit = $request->getValue('limit'); | |||||
if (strlen($against_hash)) { | |||||
$commit_range = "{$against_hash}..{$commit_hash}"; | $commit_range = "{$against_hash}..{$commit_hash}"; | ||||
} else { | } else { | ||||
$commit_range = $commit_hash; | $commit_range = $commit_hash; | ||||
} | } | ||||
$argv = array(); | $argv = array(); | ||||
$argv[] = '--skip'; | $argv[] = '--skip'; | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |