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

Method Encode

plumbing/format/index/encoder.go:39–41  ·  view source on GitHub ↗

Encode writes the Index to the stream of the encoder.

(idx *Index)

Source from the content-addressed store, hash-verified

37
38// Encode writes the Index to the stream of the encoder.
39func (e *Encoder) Encode(idx *Index) error {
40 return e.encode(idx, true)
41}
42
43func (e *Encoder) encode(idx *Index, footer bool) error {
44

Callers 15

createNewObjectPackMethod · 0.95
pushHashesFunction · 0.95
SetIndexMethod · 0.95
encodeIdxMethod · 0.95
EncodeMethod · 0.95
TestDecodeMethod · 0.95
TestDecodeWithErrorMethod · 0.95
TestDecodeFlushEOFMethod · 0.95
TestDecodeWithPendingMethod · 0.95

Calls 1

encodeMethod · 0.95

Tested by 14

TestDecodeMethod · 0.76
TestDecodeWithErrorMethod · 0.76
TestDecodeFlushEOFMethod · 0.76
TestDecodeWithPendingMethod · 0.76
TestEncodeMethod · 0.76
TestEncodeV4Function · 0.76