Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffNode ¶
type DiffNode struct {
Name string
IsDir bool
Children []*DiffNode
File *FileDiff // nil for directories
Expanded bool // for directories
}
DiffNode represents a node in the file tree (can be directory or file)
type DiffTree ¶
type DiffTree struct {
Files []FileDiff
Tree *DiffNode
FileList []string // flattened list of file paths for navigation
}
DiffTree represents the hierarchical structure of changed files
func (*DiffTree) GetFileByIndex ¶
GetFileByIndex returns the file at the given index in the flattened list
func (*DiffTree) GetFileContent ¶
GetFileContent returns the diff content for a specific file path
type FileDiff ¶
type FileDiff struct {
Path string // file path (e.g., "internal/tui/app.go")
OldPath string // original path for renames
NewPath string // new path for renames
Content string // raw diff content for this file
AddLines int // number of added lines
DelLines int // number of deleted lines
IsBinary bool // whether this is a binary file
IsNew bool // whether this is a new file
IsDelete bool // whether this file was deleted
}
FileDiff represents a single file's diff content
Click to show internal directories.
Click to hide internal directories.