-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Add branches guide content (#7094)
* Document branches * Change to headings so that we can easily show/hide changes per version * WIP: Add branching guides * Update intro and guide content with branching * Add missing `branch merge` doc * Clarify * Add links to merge doc * Add Get started > Branches to TOC * Link to more info about rebasing * Minor copy edits * Link to docs for the correct command * Fix branch commands * Clarify final state of data after rebase * Correct description, add data & strategy notes * Move branch -> db notes & make command-specific Since some branch commands do not have database command analogs, it makes sense to mention this in the notes that tell users branch commands only work on EdgeDB 5+. While I'm here, may as well offer alternatives to those commands where that makes sense. While I'm doing that, may as well make the notes for other commands that do have a database analog point to the specific database alternative. This will make some of these notes much longer, so I moved them below the initial command description. * Add note about VCS compatibility vs. examples
- Loading branch information
Showing
14 changed files
with
603 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.. _ref_cli_edgedb_branch_merge: | ||
|
||
|
||
=================== | ||
edgedb branch merge | ||
=================== | ||
|
||
Merge a :ref:`branch <ref_datamodel_branches>` into the current branch. | ||
|
||
.. cli:synopsis:: | ||
edgedb branch merge [<options>] <name> | ||
|
||
.. note:: | ||
|
||
This CLI command requires CLI version 4.0 or later and EdgeDB version 5.0 | ||
or later. Earlier versions did not feature branches and instead featured | ||
databases. Databases offered no analog to merging. See the | ||
:ref:`ref_cli_edgedb_database` command suite to manage databases. | ||
|
||
|
||
Description | ||
=========== | ||
|
||
Merges the target branch with the current branch using a fast-forward strategy, | ||
applying any new migrations from the target branch on the current branch. | ||
|
||
.. note:: | ||
|
||
This is a fast-forward merge, so no conflict resolution will be applied to | ||
the new migrations. If you want to merge but may have conflicts, you should | ||
first use :ref:`ref_cli_edgedb_branch_rebase` from the target branch before | ||
merging. | ||
|
||
.. note:: | ||
|
||
When merging, the data of the current branch is preserved. This means that | ||
if you switch to a branch ``main`` and run ``edgedb branch merge feature``, | ||
you will end up with a branch with the schema from ``main`` and any | ||
new migrations from ``feature`` and the data from ``main``. | ||
|
||
|
||
Options | ||
======= | ||
|
||
The ``branch merge`` command runs in the EdgeDB instance it is | ||
connected to. For specifying the connection target see | ||
:ref:`connection options <ref_cli_edgedb_connopts>`. | ||
|
||
:cli:synopsis:`<name>` | ||
The name of the branch to merge into the current branch. | ||
:cli:synopsis:`--no-apply` | ||
Skip applying migrations generated from the merge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.