Page MenuHomestyx hydra

DiffusionGitRequest.php
No OneTemporary

DiffusionGitRequest.php

<?php
final class DiffusionGitRequest extends DiffusionRequest {
public function supportsBranches() {
return true;
}
protected function isStableCommit($symbol) {
return preg_match('/^[a-f0-9]{40}\z/', $symbol);
}
public function getBranch() {
if ($this->branch) {
return $this->branch;
}
if ($this->repository) {
return $this->repository->getDefaultBranch();
}
throw new Exception(pht('Unable to determine branch!'));
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, Apr 28, 7:29 PM (22 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1193494
Default Alt Text
DiffusionGitRequest.php (479 B)

Event Timeline