Expand description
Workspace management — create, list, remove, and prune linked workspaces.
Layout:
- Main workspace:
root/.void/(workspace_dir == void_dir) - Linked workspace:
<path>/.voidis a file containingvoidDir=<abs path>\nworktree=<name>Per-workspace state lives in<void_dir>/worktrees/<name>/(HEAD, index, staged, stash, merge state)
Structs§
- Workspace
Info - Information about a workspace.
Functions§
- create_
workspace - Create a linked workspace.
- find_
workspace_ for_ branch - Check if a branch is checked out in any workspace.
- list_
workspaces - List all workspaces (main + linked).
- parse_
void_ file - Parse a
.voidfile (from a linked workspace) and return(void_dir, worktree_name). - prune_
workspaces - Prune stale workspace entries (where the working tree no longer exists).
- remove_
workspace - Remove a linked workspace.