shithub: furgit

ref: ab174c473618dd3743881cf44e02c2db4d1ecd5f
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.
func (repo *Repository) Reachability() *reachability.Reachability {
	return reachability.New(repo.objects, repo.commitGraph)
}