Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistGitAPI.php
Show First 20 Lines • Show All 1,558 Lines • ▼ Show 20 Lines | public function isPerforceRemote($remote_name) { | ||||
return true; | return true; | ||||
} | } | ||||
public function isPushableRemote($remote_name) { | public function isPushableRemote($remote_name) { | ||||
$uri = $this->getGitRemotePushURI($remote_name); | $uri = $this->getGitRemotePushURI($remote_name); | ||||
return ($uri !== null); | return ($uri !== null); | ||||
} | } | ||||
public function isFetchableRemote($remote_name) { | |||||
$uri = $this->getGitRemoteFetchURI($remote_name); | |||||
return ($uri !== null); | |||||
} | |||||
private function getGitRemoteFetchURI($remote_name) { | private function getGitRemoteFetchURI($remote_name) { | ||||
return $this->getGitRemoteURI($remote_name, $for_push = false); | return $this->getGitRemoteURI($remote_name, $for_push = false); | ||||
} | } | ||||
private function getGitRemotePushURI($remote_name) { | private function getGitRemotePushURI($remote_name) { | ||||
return $this->getGitRemoteURI($remote_name, $for_push = true); | return $this->getGitRemoteURI($remote_name, $for_push = true); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | public function isGitLFSWorkingCopy() { | ||||
// to "check-attr" in PHP (~600ms in a repository with 10K paths). | // to "check-attr" in PHP (~600ms in a repository with 10K paths). | ||||
// | // | ||||
// (4) Give up and just assume the repository isn't LFS. This is the | // (4) Give up and just assume the repository isn't LFS. This is the | ||||
// current behavior. | // current behavior. | ||||
return false; | return false; | ||||
} | } | ||||
protected function newLandEngine() { | |||||
return new ArcanistGitLandEngine(); | |||||
} | |||||
public function newLocalState() { | |||||
return id(new ArcanistGitLocalState()) | |||||
->setRepositoryAPI($this); | |||||
} | |||||
} | } |