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

Method Encode

plumbing/protocol/packp/ulreq_encode.go:18–21  ·  view source on GitHub ↗

Encode writes the UlReq encoding of u to the stream. All the payloads will end with a newline character. Wants and shallows are sorted alphabetically. A depth of 0 means no depth request is sent.

(w io.Writer)

Source from the content-addressed store, hash-verified

16// shallows are sorted alphabetically. A depth of 0 means no depth
17// request is sent.
18func (req *UploadRequest) Encode(w io.Writer) error {
19 e := newUlReqEncoder(w)
20 return e.Encode(req)
21}
22
23type ulReqEncoder struct {
24 pe *pktline.Encoder // where to write the encoded data

Callers

nothing calls this directly

Calls 2

newUlReqEncoderFunction · 0.85
EncodeMethod · 0.65

Tested by

no test coverage detected