Skip to main content

Module diff

Module diff 

Source
Expand description

Readonly, virtualized patch display inspired by Diffs from Pierre. Parse an externally supplied patch into DiffFiles, retain one DiffState for all of them in the owner, and build Diff during rendering.

Structs§

Diff
A themed readonly code-review surface in split or unified mode.
DiffAnnotation
Application-owned content attached to a source line or to a whole file.
DiffConflict
A parsed merge conflict in a working file.
DiffFile
One changed file parsed from a unified or Git diff.
DiffLinePosition
A one-based source line, independent of the visual layout.
DiffLineRange
An inclusive range of source lines in one file, identified by its DiffFile::path.
DiffParseError
A malformed or unsupported unified diff, with its one-based patch line.
DiffState
Retained focus, viewport, context expansion and selection for a super::Diff showing one or more files of a patch.

Enums§

DiffChangeIndicator
How changed lines are marked beside the code.
DiffConflictResolution
How the user resolved a conflict.
DiffEvent
Notifications from the readonly comparison surface.
DiffFileStatus
How a file changed, in Git’s status terms.
DiffHoverHighlight
Which part of a row is emphasized while the pointer is over it.
DiffHunkSeparator
How the start of each hunk is marked.
DiffInlineUnit
The unit inline changes are compared and emphasized in.
DiffMode
How a Diff presents the two sides of each file.
DiffSide
Which source version a position belongs to.