shithub: furgit

ref: fb9eb058f1c9b7cb26f33bbe679a85f530566641
dir: /repository/fetcher.go/

View raw version
package repository

import "codeberg.org/lindenii/furgit/object/fetch"

// Fetcher returns an object fetcher backed by the repository's object store.
//
// Use Fetcher when you want typed commits, trees, blobs, or tags, when you
// need to peel through annotated tags, or when you want path-based access
// within trees.
//
// Labels: Life-Parent, Close-No.
func (repo *Repository) Fetcher() *fetch.Fetcher {
	return fetch.New(repo.objects)
}