]> khamidou — GitHub mirrors - arcanist.git/commit
Autocomplete branches to "arc land"
authorepriestley <git@epriestley.com>
Mon, 23 Apr 2012 21:09:29 +0000 (14:09 -0700)
committerepriestley <git@epriestley.com>
Mon, 23 Apr 2012 21:09:29 +0000 (14:09 -0700)
commit9c4c1de512002193fbfcef4c751c061de6f69410
tree7188c977d874fb61806393d2e953fdd7bcc2dfbe
parentdd6ffa4a13e711fdc3e920e00b18ed4ca25c7eb9
Autocomplete branches to "arc land"

Summary:
  - Add branch name tab completion to "arc land".
  - Default to landing the current branch.
  - This is a little bit hacky but not too terrible. I'm planning to move the whole thing to PhutilArgumentParser at some point so that'll be an opportunity for a big refactor.

Test Plan: Hit tab, landed this branch.

Reviewers: zeeg, btrahan, vrana, jungejason

Reviewed By: btrahan

CC: aran, kdeggelman
Differential Revision: https://secure.phabricator.com/D2293
src/repository/api/base/ArcanistRepositoryAPI.php
src/workflow/land/ArcanistLandWorkflow.php
src/workflow/shell-complete/ArcanistShellCompleteWorkflow.php