aboutsummaryrefslogtreecommitdiff
path: root/object/resolve/exact_commit_reader.go
blob: b012c48557131dab5f45682c1329ae03cad2e896 (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"
	"codeberg.org/lindenii/furgit/objecttype"
)

// 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")
}