shithub: furgit

ref: d2d3ce370816d178cc0beb4271123ee37d07657c
dir: /object/resolve/exact_commit_reader.go/

View raw version
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")
}