Skip to main content

Module vcs

Module vcs 

Source
Expand description

Layer 2 VCS subsystem — auto-inline-diff against HEAD.

Automatically registers a DiffSession with a GitBaseline (file content at HEAD) when a file is opened inside a git repository. Gutter signs appear immediately, showing changes since the last commit.

Controlled by the git.auto-head-diff typed option.

See docs/dev/architecture/magit.md §3 (three-layer model) and docs/dev/operations/slice-plans/magit.md VCS.2.

Modules§

baseline
options

Structs§

VcsSubscriptionGuard
Dropped on editor teardown; unsubscribes the event bus and aborts the drainer task.
VcsSubsystem
The VCS subsystem — watches for document open/close events and auto-registers diff sessions against git HEAD.