Differential D10585 Diff 25583 src/applications/diffusion/conduit/DiffusionExistsQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionExistsQueryConduitAPIMethod.php
Show All 11 Lines | final class DiffusionExistsQueryConduitAPIMethod | ||||
} | } | ||||
public function defineReturnType() { | public function defineReturnType() { | ||||
return 'bool'; | return 'bool'; | ||||
} | } | ||||
protected function defineCustomParamTypes() { | protected function defineCustomParamTypes() { | ||||
return array( | return array( | ||||
'commit' => 'required string' | 'commit' => 'required string', | ||||
); | ); | ||||
} | } | ||||
protected function getGitResult(ConduitAPIRequest $request) { | protected function getGitResult(ConduitAPIRequest $request) { | ||||
$repository = $this->getDiffusionRequest()->getRepository(); | $repository = $this->getDiffusionRequest()->getRepository(); | ||||
$commit = $request->getValue('commit'); | $commit = $request->getValue('commit'); | ||||
list($err, $merge_base) = $repository->execLocalCommand( | list($err, $merge_base) = $repository->execLocalCommand( | ||||
'cat-file -t %s', | 'cat-file -t %s', | ||||
Show All 29 Lines |