Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12657209
ArcanistGitCommitMessageHardpointLoader.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
940 B
Referenced Files
None
Subscribers
None
ArcanistGitCommitMessageHardpointLoader.php
View Options
<?php
final
class
ArcanistGitCommitMessageHardpointLoader
extends
ArcanistGitHardpointLoader
{
const
LOADERKEY
=
'git.commit.message'
;
public
function
canLoadRef
(
ArcanistRef
$ref
)
{
return
(
$ref
instanceof
ArcanistCommitRef
);
}
public
function
canLoadHardpoint
(
ArcanistRef
$ref
,
$hardpoint
)
{
return
(
$hardpoint
==
'message'
);
}
public
function
loadHardpoints
(
array
$refs
,
$hardpoint
)
{
$api
=
$this
->
getQuery
()->
getRepositoryAPI
();
$futures
=
array
();
foreach
(
$refs
as
$ref_key
=>
$ref
)
{
$hash
=
$ref
->
getCommitHash
();
$futures
[
$ref_key
]
=
$api
->
execFutureLocal
(
'log -n1 --format=%C %s --'
,
'%s%n%n%b'
,
$hash
);
}
$iterator
=
$this
->
newFutureIterator
(
$futures
);
$results
=
array
();
foreach
(
$iterator
as
$ref_key
=>
$future
)
{
list
(
$stdout
)
=
$future
->
resolvex
();
$results
[
$ref_key
]
=
$stdout
;
}
return
$results
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 15:17 (10 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1081873
Default Alt Text
ArcanistGitCommitMessageHardpointLoader.php (940 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment