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

Method encodeOidLookup

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

Source from the content-addressed store, hash-verified

135}
136
137func (e *Encoder) encodeOidLookup(hashes []plumbing.Hash) (err error) {
138 for _, hash := range hashes {
139 if _, err = e.Write(hash[:]); err != nil {
140 return err
141 }
142 }
143 return
144}
145
146func (e *Encoder) encodeCommitData(hashes []plumbing.Hash, hashToIndex map[plumbing.Hash]uint32, idx Index) (extraEdges []uint32, err error) {
147 for _, hash := range hashes {

Callers 1

EncodeMethod · 0.95

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected