aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/exact_tree_reader.go
blob: 4660bd3457d5bf1d43730862003cf72ed0ccc60a (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package fetch

import (
	"io"

	objectid "codeberg.org/lindenii/furgit/object/id"
	objecttype "codeberg.org/lindenii/furgit/object/type"
)

// ExactTreeReader returns a reader for the content of the tree at id,
// together with its content size in bytes.
//
// Usage of this method is unusual.
func (r *Fetcher) ExactTreeReader(id objectid.ObjectID) (io.ReadCloser, int64, error) {
	return r.exactReader(id, objecttype.TypeTree, "tree")
}