Skip to main content

Crate lattice_magit

Crate lattice_magit 

Source
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’s Y cherries.
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’s y show-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-mode owns — the first options lattice-magit registers at all.
picker_sources
:picker magit-branch-pick-base source 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 SubsystemBoot seam. Called once from editor_boot.rs during the Phase-B subsystem install pass.