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

Method encodeExtraEdges

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

Source from the content-addressed store, hash-verified

187}
188
189func (e *Encoder) encodeExtraEdges(extraEdges []uint32) (err error) {
190 for _, parent := range extraEdges {
191 if err = binary.WriteUint32(e, parent); err != nil {
192 return
193 }
194 }
195 return
196}
197
198func (e *Encoder) encodeChecksum() error {
199 _, err := e.Write(e.hash.Sum(nil)[:hash.Size])

Callers 1

EncodeMethod · 0.95

Calls 1

WriteUint32Function · 0.92

Tested by

no test coverage detected