MCPcopy
hub / github.com/go-git/go-git / newHunksGenerator

Function newHunksGenerator

plumbing/format/diff/unified_encoder.go:186–191  ·  view source on GitHub ↗
(chunks []Chunk, ctxLines int)

Source from the content-addressed store, hash-verified

184}
185
186func newHunksGenerator(chunks []Chunk, ctxLines int) *hunksGenerator {
187 return &hunksGenerator{
188 chunks: chunks,
189 ctxLines: ctxLines,
190 }
191}
192
193func (g *hunksGenerator) Generate() []*hunk {
194 for i, chunk := range g.chunks {

Callers 1

EncodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…