Skip to main content
Every read and write happens in a world. The head is the current one. A version is a world as one commit left it, read-only. A branch is a writable world over a version: it reads what its parent held when it began and keeps its own writes, while the head and other branches go on. A mutation at the head opens a branch with ctx.branch({ from, until }), admitted within the installation’s retention from its cut (without until, it lives to the end of retention; see History and lifetime). A client then calls the same functions in it with client.in(branch), under the installed code and the caller’s own authority: a branch grants no access. ctx.land(branch, { seen, then }) applies the branch to the head once someone has reviewed it, and ctx.discard(branch) ends it without landing. Use a branch to prepare a correction or a decision for review. To exercise a real performer, use the head of a separate development deployment: tasks staged in a branch are performed only once it lands.