Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93684756
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
Sat, Nov 30, 17:06
Size
472 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 17:06 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22688492
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