Skip to main content

Module sections

Module sections 

Source
Expand description

MG.2: Magit status section index and content formatting.

Lazy by default: stores file paths + status labels only. No diffs are pre-computed — diffs load on demand via =.

Structs§

Section
SectionIndex

Enums§

SectionEntry
SectionKind

Constants§

SECTION_HEADER_PREFIXES
The fixed prefix format_buffer_styled renders for each SectionKind’s header line, before the " (N)" count suffix. Single source of truth for “is this line a section header” — previously hand-duplicated as three independent string-prefix lists (here implicitly, actions.rs::section_header_above, and magit_core_mode.rs::section_headers), free to drift out of sync with each other and with this list.

Functions§

is_section_header
True if text (already trimmed of buffer indentation) is a section header line.