shithub: furgit

ref: 3ce59c3248dec0eb0f918c42f37f53bc2ac20425
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.
func (repo *Repository) Fetcher() *fetch.Fetcher {
	return repo.fetcher
}