Skip to main content

Module models

Module models 

Source
Expand description

Owned, serializable diff domain types.

Structs§

DiffDocument
A complete renderer-neutral review snapshot: every changed file with its patch and, when captured, both complete source versions.
FileDiff
One changed file.
Hunk
A unified-diff hunk.
ModeChange
A file mode change, represented as Git’s six-digit mode string.
PatchLine
A line in a hunk, including canonical old/new numbering.
RepoPath
A validated UTF-8 path relative to a repository root.

Enums§

DiffScope
The snapshot included in a document.
DiffSide
The side of a patch to which a line or comment belongs.
FileStatus
Git’s file operation classification.
PatchLineKind
A line’s semantic patch kind.
StageState
Index/worktree staging state.