Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistLintWorkflow.php
Show First 20 Lines • Show All 338 Lines • ▼ Show 20 Lines | if ($wrote_to_disk && $this->shouldAmendChanges) { | ||||
} | } | ||||
if ($amend) { | if ($amend) { | ||||
if ($repository_api instanceof ArcanistGitAPI) { | if ($repository_api instanceof ArcanistGitAPI) { | ||||
// Add the changes to the index before amending | // Add the changes to the index before amending | ||||
$repository_api->execxLocal('add -u'); | $repository_api->execxLocal('add -u'); | ||||
} | } | ||||
$repository_api->amendCommit(); | $repository_api->amendCommit($this); | ||||
} else { | } else { | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
pht( | pht( | ||||
'Sort out the lint changes that were applied to the working '. | 'Sort out the lint changes that were applied to the working '. | ||||
'copy and relint.')); | 'copy and relint.')); | ||||
} | } | ||||
} | } | ||||
Show All 38 Lines |