Expand description
Magit — git porcelain as a core plugin.
Feature-buffer crate inverted out of lattice-host. Owns every
magit buffer view’s mode, keymap, action handler, and synthetic-
buffer provisioning. Installs through the SubsystemBoot seam —
one line in editor_boot.rs, zero Editor::do_magit_* methods.
See [docs/dev/architecture/magit.md] and
[docs/dev/operations/slice-plans/magit.md].
Modules§
- actions
- MG.3: magit-status action handlers.
- blame
- MG.26:
git blame --line-porcelain→ chunks, and a chunk → a heading row’s text. - buffer_
io - B1: writing a whole buffer, in one place.
- buffer_
state - MG.13 — per-buffer mode state, published for boot-registered action handlers.
- cursor_
restore - MG.18d: putting the cursor back on the user’s work after a rebuild.
- fold_
source - Fold ranges for magit-status inline expansions — the ENTRY level.
- headerline
- MG.14 — the sticky headerline every magit buffer carries.
- hunk
- MG.18b: locating the hunk at a cursor, and turning it into a patch.
- magit_
blame_ mode - MG.26b:
magit-blame-mode— a minor mode that annotates the buffer you are already looking at. - magit_
branch_ mode - MG.9: magit-branch major mode.
- magit_
cherry_ mode - MG.40:
magit-cherry-mode— magit’sYcherries. - magit_
commit_ mode - MG.4: magit-commit major mode.
- magit_
core_ mode - MG.1: magit-core shared minor mode.
- magit_
diff_ mode - MG.5: magit-diff major mode.
- magit_
file_ revision_ mode *magit:file:<ref>:<path>*— a file’s content at a fixed reference point, read-only.- magit_
global_ mode - MG.1: magit-global universal minor mode — entry-point chords.
- magit_
hunk_ mode - MG.24a:
magit-hunk-mode— the minor that owns diff content. - magit_
log_ mode - MG.6: magit-log major mode.
- magit_
nav_ mode magit-nav-mode— the magit chords that are safe in ANY buffer.- magit_
notes_ mode - MG.37:
magit-notes-mode— the note attached to one commit, as an editable buffer. - magit_
rebase_ mode - MG.9: magit-rebase major mode.
- magit_
refs_ mode - MG.35:
magit-refs-mode— magit’syshow-refs. - magit_
remote_ mode - MG.21c: magit-remote major mode.
- magit_
revision_ mode - Fold audit fix (MG.6/MG.7):
*magit:commit:<sha>*revision view. - magit_
stash_ mode - MG.9: magit-stash major mode.
- magit_
stash_ show_ mode - MG.15:
*magit:stash:<n>*— one stash’s patch. - magit_
status_ mode - MG.2-3: magit-status major mode.
- magit_
submodule_ mode - MG.21i: magit-submodule major mode.
- options
- MG.22b: the options
magit-hunk-modeowns — the first optionslattice-magitregisters at all. - picker_
sources :picker magit-branch-pick-basesource generator.- providers
- PD.1 (2026-08-12): multibuffer-backed magit surfaces.
- refresh
- MG.2: magit-status buffer refresh.
- repo_
scope - MR.2: which repository each magit buffer is acting on.
- sections
- MG.2: Magit status section index and content formatting.
- transients
- MG.8: magit transient menu definitions.
- workdir
- B3: repository discovery, in one place.
Functions§
- install
- Register all magit modes, commands, and keymaps via the generic
SubsystemBootseam. Called once fromeditor_boot.rsduring the Phase-B subsystem install pass.