]> khamidou — GitHub mirrors - arcanist.git/commit
Added automatic stash / unstash support for Git in arc diff.
authorJames Rhodes <jamesr@pageuppeople.com>
Thu, 21 Mar 2013 22:51:39 +0000 (15:51 -0700)
committerepriestley <git@epriestley.com>
Thu, 21 Mar 2013 23:00:05 +0000 (16:00 -0700)
commit2900ab6abdc4867f5b7451fad76bf8ebe6d9887d
treefaccc61b6bd89e0dcb161fb1a7d392d0a635dcfe
parent9963323b91193bb98294516760b67ff3c11363a1
Added automatic stash / unstash support for Git in arc diff.

Summary:
- Added arc.autostash option to have this behaviour off by
default (but configurable on a per-project basis).
- Automatic stashing of changes now informs the user of how
to restore their working directory if Arcanist unexpectedly
terminates.
- Fixed an issue with finalizeWorkingCopy when the workflow
didn't require a clean working copy.

Test Plan:
Test `arc diff` when there are changes in the working
directory; by default it should tell you to stash or commit.
Turn on the arc.autostash option and try again; it should
automatically stash with a message on how to recover, and
it should restore the working directory automatically under
almost any circumstances (other than an unrecoverable error).

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5385
scripts/arcanist.php
src/configuration/ArcanistSettings.php
src/repository/api/ArcanistGitAPI.php
src/repository/api/ArcanistRepositoryAPI.php
src/workflow/ArcanistBaseWorkflow.php