Changeset View
Changeset View
Standalone View
Standalone View
src/inspector/ArcanistCommitRefInspector.php
| Show All 9 Lines | final class ArcanistCommitRefInspector | ||||
| public function newInspectRef(array $argv) { | public function newInspectRef(array $argv) { | ||||
| if (count($argv) !== 1) { | if (count($argv) !== 1) { | ||||
| throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
| pht( | pht( | ||||
| 'Expected exactly one argument to "commit(...)" with a '. | 'Expected exactly one argument to "commit(...)" with a '. | ||||
| 'commit hash.')); | 'commit hash.')); | ||||
| } | } | ||||
| return id(new ArcanistCommitRefPro()) | return id(new ArcanistCommitRef()) | ||||
| ->setCommitHash($argv[0]); | ->setCommitHash($argv[0]); | ||||
| } | } | ||||
| } | } | ||||