blob: 24279aebad3693461c14d6ba38022bafd2476f3e (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package fetch
import (
"lindenii.org/go/furgit/object"
objectid "lindenii.org/go/furgit/object/id"
"lindenii.org/go/furgit/object/stored"
)
// ExactObject reads, parses, and wraps the object at id without constraining
// its concrete object kind.
//
// Labels: Life-Parent.
func (r *Fetcher) ExactObject(id objectid.ObjectID) (*stored.Stored[object.Object], error) {
parsed, err := r.parseObject(id)
if err != nil {
return nil, err
}
return stored.New(id, parsed), nil
}
|