branch
list
List active branches with their lineage facts.
strata branch listdb.branches.list() -> 'list'wire branch_list
Lists every active branch as a terminal page. Each item carries the branch name, deterministic branch id, generation, status, parent lineage (fork version and timestamp when forked), and logical creation version.
Paginated responses use opaque cursors. Clients should pass the returned cursor back to the same command shape and must not parse cursor contents.
To see the complete help for this command, run:
strata branch list --helphelp(db.branches.list)
Example
List branches.
strata branch create featurestrata branch list
_ = db.branches.create("feature")sorted(b.name for b in db.branches.list())
Returns
Page<BranchItem, String>
- dataobject
Shared pagination continuation facts.
- typestring
Errors
Recover by code. Retry policy and commit outcome come from the shipped error registry.
| Code | Retry | Commit outcome |
|---|---|---|
| failed_precondition.engine.runtime_closed | never | not_started |