diffrender

package
v0.15.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanHunkHeader

func CleanHunkHeader(line string) string

func DiffBodyPadding

func DiffBodyPadding(kind RowKind, width int) string

func SanitizeANSIInline

func SanitizeANSIInline(s string) string

func StripUnifiedVisibleMarker

func StripUnifiedVisibleMarker(line string, marker byte) string

func WrapANSI

func WrapANSI(s string, width int) []string

Types

type ParsedDiff

type ParsedDiff = diffcore.ParsedDiff

type RowKind

type RowKind int
const (
	RowPlain RowKind = iota
	RowAdded
	RowRemoved
	RowHunkHeader
)

func BuildDisplayBaseLines

func BuildDisplayBaseLines(parsed ParsedDiff, colorLines []string) (lines []string, kinds []RowKind, displayToRaw []int)

type SymlinkDiffInfo

type SymlinkDiffInfo struct {
	IsSymlink    bool
	WasSymlink   bool
	IsNowSymlink bool
	TypeChange   bool
	OldTarget    string
	NewTarget    string
}

func ParseSymlinkDiffInfo

func ParseSymlinkDiffInfo(parsed ParsedDiff) SymlinkDiffInfo

func (SymlinkDiffInfo) Summary

func (si SymlinkDiffInfo) Summary() string

func (SymlinkDiffInfo) TitleLabel

func (si SymlinkDiffInfo) TitleLabel() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL