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

Method Reader

plumbing/object/tree_test.go:189–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187func (o *SortReadObject) SetSize(s int64) { o.sz = s }
188func (o *SortReadObject) Content() []byte { return o.cont }
189func (o *SortReadObject) Reader() (io.ReadCloser, error) {
190 return &SortReadCloser{pos: 0, data: o.cont}, nil
191}
192func (o *SortReadObject) Writer() (io.WriteCloser, error) { return o, nil }
193func (o *SortReadObject) Write(p []byte) (n int, err error) { return len(p), nil }
194func (o *SortReadObject) Close() error { return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected