Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281884
ArcanistWorkingCopyStateRefInspector.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
616 B
Referenced Files
None
Subscribers
None
ArcanistWorkingCopyStateRefInspector.php
View Options
<?php
final
class
ArcanistWorkingCopyStateRefInspector
extends
ArcanistRefInspector
{
public
function
getInspectFunctionName
(
)
{
return
'working-copy'
;
}
public
function
newInspectRef
(
array
$argv
)
{
if
(
count
(
$argv
)
!==
1
)
{
throw
new
PhutilArgumentUsageException
(
pht
(
'Expected exactly one argument to "working-copy(...)" with a '
.
'commit hash.'
)
)
;
}
$commit_hash
=
$argv
[
0
]
;
$commit_ref
=
id
(
new
ArcanistCommitRef
(
)
)
->
setCommitHash
(
$commit_hash
)
;
return
id
(
new
ArcanistWorkingCopyStateRef
(
)
)
->
setCommitRef
(
$commit_ref
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Mar 24, 02:18 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115296
Default Alt Text
ArcanistWorkingCopyStateRefInspector.php (616 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment