Expand description
MG.22b: the options magit-hunk-mode owns — the first options
lattice-magit registers at all.
Until this slice the crate registered none, which several user-doc
pages had to say out loud: every magit.* name a user reached for
failed with unknown option.
magit.hunk.syntax-highlight landed with its feature, as the
note that used to stand here promised. It was withheld until the
feature existed because an option that changes nothing is the same
failure as a menu row that does nothing, just quieter — :set
reports success either way.
magit.hunk.line-backgrounds is absent too, and lives elsewhere
instead: it became ui.diff.line-backgrounds in lattice-diff.
MG.21a found the mechanism is generic —
Editor::diff_signs_from_spans derives the tint from whatever spans
a mode publishes, so every diff-showing buffer shares it — and an
option named for one consumer would have understated what it turns
off.
Structs§
- Magit
Hunk Context Lines - Unchanged lines of context around each hunk in the diffs magit
generates —
git diff -U<n>. Default3, which is git’s own. - Magit
Hunk Syntax Highlight - Syntax-highlight the code inside a diff, with the
+/-colouring layered over it. On by default. - Magit
Revision Preview - MG.54: show the file’s content while choosing a revision in the
C-c f vpicker (:magit-find-file). On by default.