Documentation
¶
Overview ¶
Package diffview renders structured unified diffs consistently across Kodelet surfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderedText ¶
func RenderedText(lines []RenderedLine) string
Types ¶
type FileDiff ¶
type FileDiff struct {
Path string
MovePath string
Operation string
Added int
Removed int
Lines []Line
}
func FromApplyPatchChange ¶
func FromApplyPatchChange(change tooltypes.ApplyPatchChange) FileDiff
func (FileDiff) DisplayPath ¶
func (FileDiff) OperationLabel ¶
type RenderedLine ¶
func RenderFileBody ¶
func RenderFileBody(file FileDiff) []RenderedLine
func RenderFileBodyWidth ¶
func RenderFileBodyWidth(file FileDiff, width int) []RenderedLine
func RenderSummary ¶
func RenderSummary(summary Summary) []RenderedLine
func RenderSummaryWidth ¶
func RenderSummaryWidth(summary Summary, width int) []RenderedLine
type Summary ¶
func FromApplyPatchMetadata ¶
func FromApplyPatchMetadata(meta tooltypes.ApplyPatchMetadata) Summary
Click to show internal directories.
Click to hide internal directories.