]> khamidou — GitHub mirrors - arcanist.git/commit
Make "no working copy" a more explicit "arc" VCS
authorepriestley <git@epriestley.com>
Tue, 3 Feb 2015 20:32:46 +0000 (12:32 -0800)
committerepriestley <git@epriestley.com>
Tue, 3 Feb 2015 20:32:46 +0000 (12:32 -0800)
commita08383aa1b7879b479c34853fa9a6a10d2c3fd1c
treed470876ab16b9cfbda73b43217e0a7142b0d7406
parent77eb24b13afbf1d578feb3a7ef2a5e05738ef387
Make "no working copy" a more explicit "arc" VCS

Summary:
Some commands (like `get-config`) do not require a working copy at all. Recent changes prevented these commands from running outside a VCS working copy.

Let `null` mean "no working copy".

See also <https://github.com/phacility/phabricator/issues/800>.

Test Plan:
  - Ran `arc get-config` from outside a working copy.
  - Ran `arc list` from outside a working copy, got an error.
  - Ran `arc commit` in a Git working copy, got an error.

Reviewers: joshuaspence

Reviewed By: joshuaspence

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D11643
scripts/arcanist.php
src/workflow/ArcanistShellCompleteWorkflow.php