aboutsummaryrefslogtreecommitdiff
path: root/repository/reachability.go
blob: 0e1bf682156246bb549895c0f9abcd8f6a702c06 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package repository

import "codeberg.org/lindenii/furgit/reachability"

// Reachability returns graph traversal helpers backed by the repository's
// object store and optional commit-graph.
//
// Use Reachability to walk reachable commits or objects and to perform
// connectivity checks.
//
// Labels: Life-Parent.
func (repo *Repository) Reachability() *reachability.Reachability {
	return reachability.New(repo.objects, repo.commitGraph)
}