Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
Show First 20 Lines • Show All 1,211 Lines • ▼ Show 20 Lines | if ($unstaged || $uncommitted) { | ||||
'Commit or discard them before proceeding.')); | 'Commit or discard them before proceeding.')); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if ($should_commit) { | if ($should_commit) { | ||||
if ($this->getShouldAmend()) { | if ($this->getShouldAmend()) { | ||||
$commit = head($api->getLocalCommitInformation()); | $commit = head($api->getLocalCommitInformation()); | ||||
$api->amendCommit($commit['message']); | $api->amendCommit($this, $commit['message']); | ||||
} else if ($api->supportsLocalCommits()) { | } else if ($api->supportsLocalCommits()) { | ||||
$template = sprintf( | $template = sprintf( | ||||
"\n\n# %s\n#\n# %s\n#\n", | "\n\n# %s\n#\n# %s\n#\n", | ||||
pht('Enter a commit message.'), | pht('Enter a commit message.'), | ||||
pht('Changes:')); | pht('Changes:')); | ||||
$paths = array_merge($uncommitted, $unstaged); | $paths = array_merge($uncommitted, $unstaged); | ||||
$paths = array_unique($paths); | $paths = array_unique($paths); | ||||
▲ Show 20 Lines • Show All 1,239 Lines • Show Last 20 Lines |