aboutsummaryrefslogtreecommitdiff
path: root/repository/fetcher.go
blob: ae3b9a7d5bcccd9e5cbcc1480856981ebeee5a56 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 repo.fetcher
}