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

import (
	"io"

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

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