Skip to main content

Module fragmap

Module fragmap 

Source

Structs§

FileSpan
A span of line numbers within a specific file.
FragMap
The complete fragmap: commits, span clusters, and the matrix showing which commits touch which clusters.
SpanCluster
A cluster of overlapping or adjacent FileSpans across multiple commits.

Enums§

SquashRelation
The relationship between two commits within a specific cluster.
SquashableScope
Controls how the squashable connector indicator is computed.
TouchKind
The kind of change a commit makes to a code region.

Functions§

assign_hunk_groups
Compute the fragmap-based hunk group assignment for commit commit_oid.
build_fragmap
Build a fragmap from a collection of commits and their diffs.
extract_spans
(legacy) Extract FileSpans from a single commit diff without propagation. Kept for tests that operate on individual commits.
extract_spans_propagated
Extract FileSpans from all commit diffs with span propagation.