shithub: furgit

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

View raw version
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, Close-No.
func (repo *Repository) Reachability() *reachability.Reachability {
	return reachability.New(repo.objects, repo.commitGraph)
}