Page MenuHomePhorge

DiffusionGitRequest.php
No OneTemporary

Size
472 B
Referenced Files
None
Subscribers
None

DiffusionGitRequest.php

<?php
final class DiffusionGitRequest extends DiffusionRequest {
protected function isStableCommit($symbol) {
if ($symbol === null) {
return false;
}
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
Mon, May 12, 9:08 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
97375
Default Alt Text
DiffusionGitRequest.php (472 B)

Event Timeline