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

Method encodeHeader

plumbing/format/index/encoder.go:64–70  ·  view source on GitHub ↗
(idx *Index)

Source from the content-addressed store, hash-verified

62}
63
64func (e *Encoder) encodeHeader(idx *Index) error {
65 return binary.Write(e.w,
66 indexSignature,
67 idx.Version,
68 uint32(len(idx.Entries)),
69 )
70}
71
72func (e *Encoder) encodeEntries(idx *Index) error {
73 sort.Sort(byName(idx.Entries))

Callers 1

encodeMethod · 0.95

Calls 1

WriteFunction · 0.92

Tested by

no test coverage detected