Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistAmendWorkflow.php
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | public function runWorkflow() { | ||||
$message = $revision_ref->getCommitMessage(); | $message = $revision_ref->getCommitMessage(); | ||||
if ($is_show) { | if ($is_show) { | ||||
echo tsprintf( | echo tsprintf( | ||||
"%B\n", | "%B\n", | ||||
$message); | $message); | ||||
} else { | } else { | ||||
$repository_api->amendCommit($message); | $repository_api->amendCommit($this, $message); | ||||
} | } | ||||
return 0; | return 0; | ||||
} | } | ||||
private function requireAmendSupport(ArcanistRepositoryAPI $api) { | private function requireAmendSupport(ArcanistRepositoryAPI $api) { | ||||
if (!$api->supportsAmend()) { | if (!$api->supportsAmend()) { | ||||
if ($api instanceof ArcanistMercurialAPI) { | if ($api instanceof ArcanistMercurialAPI) { | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |