[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class DiffusionGitRequest extends DiffusionRequest { 4 5 public function supportsBranches() { 6 return true; 7 } 8 9 protected function isStableCommit($symbol) { 10 return preg_match('/^[a-f0-9]{40}\z/', $symbol); 11 } 12 13 public function getBranch() { 14 if ($this->branch) { 15 return $this->branch; 16 } 17 if ($this->repository) { 18 return $this->repository->getDefaultBranch(); 19 } 20 throw new Exception('Unable to determine branch!'); 21 } 22 23 protected function getResolvableBranchName($branch) { 24 if ($this->repository->isWorkingCopyBare()) { 25 return $branch; 26 } else { 27 $remote = DiffusionGitBranch::DEFAULT_GIT_REMOTE; 28 return $remote.'/'.$branch; 29 } 30 } 31 32 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |