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

Method encodeExtraEdges

plumbing/format/commitgraph/v2/encoder.go:209–216  ·  view source on GitHub ↗
(extraEdges []uint32)

Source from the content-addressed store, hash-verified

207}
208
209func (e *Encoder) encodeExtraEdges(extraEdges []uint32) (err error) {
210 for _, parent := range extraEdges {
211 if err = binary.WriteUint32(e, parent); err != nil {
212 return
213 }
214 }
215 return
216}
217
218func (e *Encoder) encodeGenerationV2Data(generationV2Data []uint64) (overflows []uint64, err error) {
219 head := 0

Callers 1

EncodeMethod · 0.95

Calls 1

WriteUint32Function · 0.92

Tested by

no test coverage detected