1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-02-22 19:49:01 +01:00

Support short version of arc diff --add-all

Summary: Like `git commit -a`.

Test Plan:
  $ arc diff -a

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4903
This commit is contained in:
vrana 2013-02-11 10:51:17 -08:00
parent f32b6aa6c5
commit 8f0b0d379f

View file

@ -771,15 +771,15 @@ abstract class ArcanistBaseWorkflow extends Phobject {
echo phutil_console_wrap( echo phutil_console_wrap(
"Since you don't have '.gitignore' rules for these files and have ". "Since you don't have '.gitignore' rules for these files and have ".
"not listed them in '.git/info/exclude', you may have forgotten ". "not listed them in '.git/info/exclude', you may have forgotten ".
"to 'git add' them to your commit."); "to 'git add' them to your commit.\n");
} else if ($api instanceof ArcanistSubversionAPI) { } else if ($api instanceof ArcanistSubversionAPI) {
echo phutil_console_wrap( echo phutil_console_wrap(
"Since you don't have 'svn:ignore' rules for these files, you may ". "Since you don't have 'svn:ignore' rules for these files, you may ".
"have forgotten to 'svn add' them."); "have forgotten to 'svn add' them.\n");
} else if ($api instanceof ArcanistMercurialAPI) { } else if ($api instanceof ArcanistMercurialAPI) {
echo phutil_console_wrap( echo phutil_console_wrap(
"Since you don't have '.hgignore' rules for these files, you ". "Since you don't have '.hgignore' rules for these files, you ".
"may have forgotten to 'hg add' them to your commit."); "may have forgotten to 'hg add' them to your commit.\n");
} }
if ($this->askForAdd()) { if ($this->askForAdd()) {
@ -821,7 +821,7 @@ abstract class ArcanistBaseWorkflow extends Phobject {
echo "You have unstaged changes in this working copy.\n\n". echo "You have unstaged changes in this working copy.\n\n".
$working_copy_desc. $working_copy_desc.
" Unstaged changes in working copy:\n". " Unstaged changes in working copy:\n".
" ".implode("\n ", $unstaged); " ".implode("\n ", $unstaged)."\n";
if ($this->askForAdd()) { if ($this->askForAdd()) {
$api->addToCommit($unstaged); $api->addToCommit($unstaged);
$must_commit += array_flip($unstaged); $must_commit += array_flip($unstaged);
@ -841,7 +841,7 @@ abstract class ArcanistBaseWorkflow extends Phobject {
echo "You have uncommitted changes in this working copy.\n\n". echo "You have uncommitted changes in this working copy.\n\n".
$working_copy_desc. $working_copy_desc.
" Uncommitted changes in working copy:\n". " Uncommitted changes in working copy:\n".
" ".implode("\n ", $uncommitted); " ".implode("\n ", $uncommitted)."\n";
if ($this->askForAdd()) { if ($this->askForAdd()) {
$must_commit += array_flip($uncommitted); $must_commit += array_flip($uncommitted);
} else { } else {