Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistGitAPI.php
Show First 20 Lines • Show All 820 Lines • ▼ Show 20 Lines | $this->execxLocal( | ||||
'commit -F %s', | 'commit -F %s', | ||||
$tmp_file); | $tmp_file); | ||||
$this->reloadWorkingCopy(); | $this->reloadWorkingCopy(); | ||||
return $this; | return $this; | ||||
} | } | ||||
public function amendCommit($message = null) { | public function amendCommit($workflow, $message = null) { | ||||
if ($message === null) { | if ($message === null) { | ||||
$this->execxLocal('commit --amend --allow-empty -C HEAD'); | $this->execxLocal('commit --amend --allow-empty -C HEAD'); | ||||
} else { | } else { | ||||
$tmp_file = new TempFile(); | $tmp_file = new TempFile(); | ||||
Filesystem::writeFile($tmp_file, $message); | Filesystem::writeFile($tmp_file, $message); | ||||
$this->execxLocal( | $this->execxLocal( | ||||
'commit --amend --allow-empty -F %s', | 'commit --amend --allow-empty -F %s', | ||||
$tmp_file); | $tmp_file); | ||||
▲ Show 20 Lines • Show All 988 Lines • Show Last 20 Lines |