Test Plan:
$ arc diff -a
$ arc diff -a # saw amend instead of a new commit
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4947
private function askForAdd() {
if ($this->commitMode == self::COMMIT_DISABLE) {
return false;
- } else if ($this->commitMode == self::COMMIT_ENABLE) {
- return true;
}
if ($this->shouldAmend === null) {
$this->shouldAmend = $this->shouldAmend();
}
+ if ($this->commitMode == self::COMMIT_ENABLE) {
+ return true;
+ }
if ($this->shouldAmend) {
$prompt = "Do you want to amend these files to the commit?";
} else {