Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistGitAPI.php
Show First 20 Lines • Show All 1,399 Lines • ▼ Show 20 Lines | protected function didReloadCommitRange() { | ||||
$this->resolvedHeadCommit = null; | $this->resolvedHeadCommit = null; | ||||
} | } | ||||
/** | /** | ||||
* Follow the chain of tracking branches upstream until we reach a remote | * Follow the chain of tracking branches upstream until we reach a remote | ||||
* or cycle locally. | * or cycle locally. | ||||
* | * | ||||
* @param string Ref to start from. | * @param string Ref to start from. | ||||
* @return list<wild> Path to an upstream. | * @return ArcanistGitUpstreamPath Path to an upstream. | ||||
*/ | */ | ||||
public function getPathToUpstream($start) { | public function getPathToUpstream($start) { | ||||
$cursor = $start; | $cursor = $start; | ||||
$path = new ArcanistGitUpstreamPath(); | $path = new ArcanistGitUpstreamPath(); | ||||
while (true) { | while (true) { | ||||
list($err, $upstream) = $this->execManualLocal( | list($err, $upstream) = $this->execManualLocal( | ||||
'rev-parse --symbolic-full-name %s@{upstream}', | 'rev-parse --symbolic-full-name %s@{upstream}', | ||||
$cursor); | $cursor); | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |