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

Method encodeOidLookup

plumbing/format/commitgraph/v2/encoder.go:151–158  ·  view source on GitHub ↗
(hashes []plumbing.Hash)

Source from the content-addressed store, hash-verified

149}
150
151func (e *Encoder) encodeOidLookup(hashes []plumbing.Hash) (err error) {
152 for _, hash := range hashes {
153 if _, err = e.Write(hash[:]); err != nil {
154 return err
155 }
156 }
157 return
158}
159
160func (e *Encoder) encodeCommitData(hashes []plumbing.Hash, hashToIndex map[plumbing.Hash]uint32, idx Index) (extraEdges []uint32, generationV2Data []uint64, err error) {
161 if idx.HasGenerationV2() {

Callers 1

EncodeMethod · 0.95

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected