]> khamidou — GitHub mirrors - arcanist.git/commit
Improve arc's handling of dirty submodules in Git
authorepriestley <git@epriestley.com>
Mon, 21 Sep 2015 19:40:06 +0000 (12:40 -0700)
committerepriestley <git@epriestley.com>
Mon, 21 Sep 2015 19:40:06 +0000 (12:40 -0700)
commit9c056c5cc887aa3d4b7fc25118606df6e5e955cc
tree41a927c3281be05bcb489079d79c6106303abab9
parent083127c4cc5aaca09cb2cd829a6a58bc7dc74738
Improve arc's handling of dirty submodules in Git

Summary:
Fixes T9455. Depends on D14136. When you have a dirty submodule:

  $ nano submodule/file.c # save changes

...we currently ask you to make a commit when you run `arc diff`, which is meaningless and misleading.

Instead, prompt the user separately.

This behavior isn't perfect but I think it's about the best we can do within reason.

Test Plan:
  - Ran `arc diff` in a working copy with uncommitted submodule changes only, got new prompt.
  - Ran `arc diff` in a working copy with submodule base commit changes only, got old (correct) prompt.
  - Ran `arc diff` in a working copy with both, got only old prompt (which is incomplete, but reasonable/meaningful).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9455

Differential Revision: https://secure.phabricator.com/D14137
src/internationalization/ArcanistUSEnglishTranslation.php
src/repository/api/ArcanistGitAPI.php
src/repository/api/ArcanistRepositoryAPI.php
src/workflow/ArcanistFeatureWorkflow.php
src/workflow/ArcanistListWorkflow.php
src/workflow/ArcanistPhrequentWorkflow.php
src/workflow/ArcanistTasksWorkflow.php
src/workflow/ArcanistWorkflow.php