Changeset View
Changeset View
Standalone View
Standalone View
src/repository/marker/ArcanistGitRepositoryMarkerQuery.php
| <?php | <?php | ||||
| final class ArcanistGitRepositoryMarkerQuery | final class ArcanistGitRepositoryMarkerQuery | ||||
| extends ArcanistRepositoryMarkerQuery { | extends ArcanistRepositoryMarkerQuery { | ||||
| protected function newLocalRefMarkers() { | |||||
| protected function newRefMarkers() { | |||||
| $api = $this->getRepositoryAPI(); | $api = $this->getRepositoryAPI(); | ||||
| $future = $this->newCurrentBranchNameFuture()->start(); | $future = $this->newCurrentBranchNameFuture()->start(); | ||||
| $field_list = array( | $field_list = array( | ||||
| '%(refname)', | '%(refname)', | ||||
| '%(objectname)', | '%(objectname)', | ||||
| '%(committerdate:raw)', | '%(committerdate:raw)', | ||||
| ▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | private function resolveCurrentBranchNameFuture($future) { | ||||
| $matches = null; | $matches = null; | ||||
| if (!preg_match('(^refs/heads/(.*)\z)', trim($stdout), $matches)) { | if (!preg_match('(^refs/heads/(.*)\z)', trim($stdout), $matches)) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| return $matches[1]; | return $matches[1]; | ||||
| } | } | ||||
| protected function newRemoteRefMarkers(ArcanistRemoteRef $remote) { | |||||
| throw new PhutilMethodNotImplementedException(); | |||||
| } | |||||
| } | } | ||||