blob: d3bc7f49afc99a595bb002354240a2b8a5680884 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package resolve
import (
"io"
objectid "codeberg.org/lindenii/furgit/object/id"
)
// PeelToBlobReader returns a reader for the content of the peeled blob at id,
// together with its content size in bytes.
func (r *Resolver) PeelToBlobReader(id objectid.ObjectID) (io.ReadCloser, int64, error) {
blobID, err := r.PeelToBlobID(id)
if err != nil {
return nil, 0, err
}
return r.ExactBlobReader(blobID)
}
|