MCPcopy Index your code
hub / github.com/go-git/go-git / encodeGenerationV2Overflow

Method encodeGenerationV2Overflow

plumbing/format/commitgraph/v2/encoder.go:238–245  ·  view source on GitHub ↗
(overflows []uint64)

Source from the content-addressed store, hash-verified

236}
237
238func (e *Encoder) encodeGenerationV2Overflow(overflows []uint64) (err error) {
239 for _, overflow := range overflows {
240 if err = binary.WriteUint64(e, overflow); err != nil {
241 return
242 }
243 }
244 return
245}
246
247func (e *Encoder) encodeChecksum() error {
248 _, err := e.Write(e.hash.Sum(nil)[:hash.Size])

Callers 1

EncodeMethod · 0.95

Calls 1

WriteUint64Function · 0.92

Tested by

no test coverage detected