Changeset View
Changeset View
Standalone View
Standalone View
src/ref/commit/ArcanistCommitSymbolRefInspector.php
- This file was copied from src/ref/commitsymbol/ArcanistCommitSymbolRefInspector.php.
<?php | <?php | ||||
final class ArcanistCommitSymbolRefInspector | final class ArcanistCommitSymbolRefInspector | ||||
extends ArcanistRefInspector { | extends ArcanistRefInspector { | ||||
public function getInspectFunctionName() { | public function getInspectFunctionName() { | ||||
return 'symbol'; | return 'commit'; | ||||
} | } | ||||
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 "symbol(...)" with a '. | 'Expected exactly one argument to "commit(...)" with a '. | ||||
'commit symbol.')); | 'commit symbol.')); | ||||
} | } | ||||
return id(new ArcanistCommitSymbolRef()) | return id(new ArcanistCommitSymbolRef()) | ||||
->setSymbol($argv[0]); | ->setSymbol($argv[0]); | ||||
} | } | ||||
} | } |