Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102675497
DiffusionGitCommitParentsQuery.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
Sun, Feb 23, 03:38
Size
472 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 03:38 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24393356
Attached To
rPH Phabricator
DiffusionGitCommitParentsQuery.php
View Options
<?php
final
class
DiffusionGitCommitParentsQuery
extends
DiffusionCommitParentsQuery
{
protected
function
executeQuery
()
{
$drequest
=
$this
->
getRequest
();
$repository
=
$drequest
->
getRepository
();
list
(
$stdout
)
=
$repository
->
execxLocalCommand
(
'log -n 1 --format=%s %s'
,
'%P'
,
$drequest
->
getStableCommitName
());
$hashes
=
preg_split
(
'/
\s
+/'
,
trim
(
$stdout
));
return
self
::
loadCommitsByIdentifiers
(
$hashes
,
$drequest
);
}
}
Event Timeline
Log In to Comment