MCPcopy Create free account
hub / github.com/go-git/go-git / encodeHeader

Method encodeHeader

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

Source from the content-addressed store, hash-verified

53}
54
55func (e *Encoder) encodeHeader(idx *Index) error {
56 return binary.Write(e.w,
57 indexSignature,
58 idx.Version,
59 uint32(len(idx.Entries)),
60 )
61}
62
63func (e *Encoder) encodeEntries(idx *Index) error {
64 sort.Sort(byName(idx.Entries))

Callers 1

EncodeMethod · 0.95

Calls 1

WriteFunction · 0.92

Tested by

no test coverage detected