aboutsummaryrefslogtreecommitdiff
path: root/repository/reachability.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository/reachability.go')
-rw-r--r--repository/reachability.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/repository/reachability.go b/repository/reachability.go
new file mode 100644
index 00000000..4e6a4559
--- /dev/null
+++ b/repository/reachability.go
@@ -0,0 +1,11 @@
+package repository
+
+import "codeberg.org/lindenii/furgit/reachability"
+
+// Reachability returns graph traversal helpers backed by the repository's
+// object store and optional commit-graph.
+//
+// Labels: Life-Parent, Close-No.
+func (repo *Repository) Reachability() *reachability.Reachability {
+ return reachability.New(repo.objects, repo.commitGraph)
+}