Documentation
¶
Overview ¶
Package chunkers provides chunking strategies for various git outputs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyLog = errors.New("log input is empty")
ErrEmptyLog is returned when the log input is empty.
Functions ¶
This section is empty.
Types ¶
type DiffChunker ¶
type DiffChunker struct {
// contains filtered or unexported fields
}
DiffChunker splits unified diffs into logical chunks using token-based clustering.
type LogChunker ¶
type LogChunker struct {
// contains filtered or unexported fields
}
LogChunker splits git log output into chunks based on commit count.
func NewLogChunker ¶
func NewLogChunker(contextWindow int) *LogChunker
NewLogChunker creates a new LogChunker with the specified context window. It calculates commitsPerChunk as approximately contextWindow/200, with a minimum of 10 and maximum of 25.
Click to show internal directories.
Click to hide internal directories.