Module vcs

Module vcs 

Source
Expand description

VCS backend abstraction for worktree and workspace management.

Grove supports both git worktrees and jj workspaces through the VcsBackend trait. The backend is auto-detected: if the repository contains a .jj/ directory, jj is used; otherwise git. Users can force git mode with --vcs git for colocated repos.

Structsยง

GitBackend ๐Ÿ”’
JjBackend ๐Ÿ”’
WorktreeInfo
Information about a worktree/workspace managed by a VCS backend.

Enumsยง

VcsKind
Which VCS backend produced this worktree entry.
VcsOverride
Override for VCS backend selection via --vcs flag.

Traitsยง

VcsBackend
Trait for VCS backends that manage worktrees/workspaces.

Functionsยง

detect_backend
Detect the appropriate VCS backend for a repository.
ensure_jj_installed ๐Ÿ”’