Changeset View
Changeset View
Standalone View
Standalone View
src/query/ArcanistGitCommitMessageHardpointQuery.php
| <?php | <?php | ||||
| final class ArcanistGitCommitMessageHardpointQuery | final class ArcanistGitCommitMessageHardpointQuery | ||||
| extends ArcanistWorkflowGitHardpointQuery { | extends ArcanistWorkflowGitHardpointQuery { | ||||
| public function getHardpoints() { | public function getHardpoints() { | ||||
| return array( | return array( | ||||
| ArcanistCommitRefPro::HARDPOINT_MESSAGE, | ArcanistCommitRef::HARDPOINT_MESSAGE, | ||||
| ); | ); | ||||
| } | } | ||||
| protected function canLoadRef(ArcanistRefPro $ref) { | protected function canLoadRef(ArcanistRef $ref) { | ||||
| return ($ref instanceof ArcanistCommitRefPro); | return ($ref instanceof ArcanistCommitRef); | ||||
| } | } | ||||
| public function loadHardpoint(array $refs, $hardpoint) { | public function loadHardpoint(array $refs, $hardpoint) { | ||||
| $api = $this->getRepositoryAPI(); | $api = $this->getRepositoryAPI(); | ||||
| $hashes = mpull($refs, 'getCommitHash'); | $hashes = mpull($refs, 'getCommitHash'); | ||||
| $unique_hashes = array_fuse($hashes); | $unique_hashes = array_fuse($hashes); | ||||
| Show All 27 Lines | |||||