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.
- DiffLayout
- Immutable output of a diff layout pass.
- DiffLine
- A single parsed line from a unified diff.
- DiffReviewBlock TUI
- A display slot in a review. Heights are owned by the rendering host.
- DiffReviewBlocks TUI
- Immutable, sparsely indexed mixed review document.
- DiffReviewClearRangeMsg
- Clears range selection while keeping the selected line.
- DiffReviewClearSelectionMsg
- Clears both selected line and range.
- DiffReviewCodeBlock
- One already-laid-out terminal code row.
- DiffReviewDocument TUI
- Immutable source index for a particular review document revision.
- DiffReviewExpandMsg
- Changes expansion for one known thread.
- DiffReviewLoadMsg
- Atomically replaces patch and threads.
- DiffReviewModel TUI
- TEA review interaction model with source-anchored selection and threads.
- DiffReviewMoveMsg
- Moves through source-order code lines, clamped to the document bounds.
- DiffReviewMsg
- Semantic review actions. Hosts translate their own key maps into these.
- DiffReviewPresentationMsg
- Changes presentation without changing source identities or thread state.
- DiffReviewRange TUI
- An inclusive range on one side of one file.
- DiffReviewSelectMsg
- Selects an exact source position. Unknown positions are ignored.
- DiffReviewSideMsg
- Switches to the other coordinate of a context line or aligned split row.
- DiffReviewThread TUI
- A review thread's stable identity and attachment, independent of its UI.
- DiffReviewThreadBlock
- One independently identified thread, whether attached, outdated, or unmapped.
- DiffReviewThreadPlacement TUI
- A thread's placement in one layout.
- DiffReviewThreadsMsg
- Replaces threads for one revision, rejecting stale asynchronous responses.
- DiffReviewToggleRangeMsg
- Starts or finishes range selection at the selected source position.
- 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.
- DiffReviewThreadStatus
- Whether a thread can be attached to the current patch.
- DiffViewMode
- The display mode for the diff viewer.