Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the switch command (RFC 1025) #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions text/1025-branches.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,17 @@ introduced instead.
* It should have the ``--copy-data`` option. By default a new branch copies
schema only.

* It should not switch the active branch to the newly created one.

The old ``drop`` subcommand works pretty much same as before.

The old ``wipe`` subcommand may still be relevant for resetting a particular
branch.

There must be a new ``switch`` sub-command that allows changing the default
branch to connect to by updating the project ``$CONFIG/credentails``. We can
also offer a post-checkout git hook to update the branch in
branch to connect to by updating the project ``$CONFIG/credentails``. There
should be a ``--create`` flag to create the branch if it doesn't exist We
can also offer a post-checkout git hook to update the branch in
``$CONFIG/credentails`` when switching git branches. The mapping between git
and EdgeDB branches can be maintained in the
``$CONFIG/projects/{project}/branches.toml`` file as well. When switching
Expand Down