Skip to main content

Module workspaces

Module workspaces 

Source
Expand description

Workspace management — create, list, remove, and prune linked workspaces.

Layout:

  • Main workspace: root/.void/ (workspace_dir == void_dir)
  • Linked workspace: <path>/.void is a file containing voidDir=<abs path>\nworktree=<name> Per-workspace state lives in <void_dir>/worktrees/<name>/ (HEAD, index, staged, stash, merge state)

Structs§

WorkspaceInfo
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 .void file (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.