git_diff library TUI
Git diff parsing, rendering, and review primitives.
This focused entrypoint exposes the reusable diff model and its public data types without loading the complete Bubbles component catalog.
Classes
- DiffCommentAnchor
- A commentable position in the rendered diff.
- DiffCommentLineHighlight
- A visual highlight request for a commentable diff line.
- DiffCommentLineKey
- Stable identity for a commentable line in a pull-request diff.
- DiffFile
- A file entry in a parsed diff.
- DiffLine
- A single parsed line from a unified diff.
- DiffStyles
- Configuration for diff styling.
- GitDiffKeyMap
- Key bindings for the git diff viewer.
- GitDiffModel
- A git diff viewer bubble.
Enums
- DiffCommentKind
- The kind of diff line represented by a DiffCommentAnchor.
- DiffCommentLineHighlightKind
- The visual role of a commentable diff line.
- DiffCommentSide
- Which side of a pull-request diff a commentable line belongs to.
- DiffLineType
- The type of a parsed diff line.
- DiffViewMode
- The display mode for the diff viewer.