Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistAmendWorkflow.php
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | if ($this->isHistoryImmutable()) { | ||||
$prompt = pht('Are you sure you want to mutate history?'); | $prompt = pht('Are you sure you want to mutate history?'); | ||||
$this->getPrompt('arc.amend.immutable') | $this->getPrompt('arc.amend.immutable') | ||||
->setQuery($prompt) | ->setQuery($prompt) | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
return; | |||||
if ($api->getUncommittedChanges()) { | if ($api->getUncommittedChanges()) { | ||||
// TODO: Make this class of error show the uncommitted changes. | // TODO: Make this class of error show the uncommitted changes. | ||||
// TODO: This only needs to check for staged-but-uncommitted changes. | // TODO: This only needs to check for staged-but-uncommitted changes. | ||||
// We can safely amend with untracked and unstaged changes. | // We can safely amend with untracked and unstaged changes. | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0