Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72861677
DiffusionGitFileContentQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 17, 09:57
Size
530 B
Mime Type
text/x-php
Expires
Fri, Jul 19, 09:57 (2 d)
Engine
blob
Format
Raw Data
Handle
19113137
Attached To
rPH Phabricator
DiffusionGitFileContentQuery.php
View Options
<?php
final
class
DiffusionGitFileContentQuery
extends
DiffusionFileContentQuery
{
protected
function
getFileContentFuture
()
{
$drequest
=
$this
->
getRequest
();
$repository
=
$drequest
->
getRepository
();
$path
=
$drequest
->
getPath
();
$commit
=
$drequest
->
getCommit
();
return
$repository
->
getLocalCommandFuture
(
'cat-file blob %s:%s'
,
$commit
,
$path
);
}
protected
function
resolveFileContentFuture
(
Future
$future
)
{
list
(
$corpus
)
=
$future
->
resolvex
();
return
$corpus
;
}
}
Event Timeline
Log In to Comment