Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F429449
DiffusionGitRequest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
479 B
Referenced Files
None
Subscribers
None
DiffusionGitRequest.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 8:32 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
59532
Default Alt Text
DiffusionGitRequest.php (479 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment