Page MenuHomePhorge

ArcanistWorkingCopyStateRefInspector.php
No OneTemporary

ArcanistWorkingCopyStateRefInspector.php

<?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

Mime Type
text/x-php
Expires
Mon, Mar 24, 02:18 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115296
Default Alt Text
ArcanistWorkingCopyStateRefInspector.php (616 B)

Event Timeline