aboutsummaryrefslogtreecommitdiff
path: root/reachability/reachability.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-28 18:01:38 +0000
committerGravatar Runxi Yu2026-03-28 18:01:38 +0000
commit8c135d16610a9da49c0cd41220125c7a2a06a105 (patch)
treeb90f5bded6b81dbb9a08c55111224833c9c30292 /reachability/reachability.go
parentreachability: Document contract (diff)
signatureNo signature
reachability: Don't have a separate New for commit graphs
Diffstat (limited to 'reachability/reachability.go')
-rw-r--r--reachability/reachability.go13
1 files changed, 3 insertions, 10 deletions
diff --git a/reachability/reachability.go b/reachability/reachability.go
index 2fa29ad1..6932016b 100644
--- a/reachability/reachability.go
+++ b/reachability/reachability.go
@@ -14,17 +14,10 @@ type Reachability struct {
graph *commitgraphread.Reader
}
-// New builds a Reachability over one object store.
+// New builds a Reachability over one object store with an optional
+// commit-graph reader for faster commit-domain traversal.
//
// Labels: Deps-Borrowed.
-func New(store objectstore.ReadingStore) *Reachability {
- return &Reachability{store: store}
-}
-
-// NewWithCommitGraph builds a Reachability over one object store with an
-// optional commit-graph reader for faster commit-domain traversal.
-//
-// Labels: Deps-Borrowed.
-func NewWithCommitGraph(store objectstore.ReadingStore, graph *commitgraphread.Reader) *Reachability {
+func New(store objectstore.ReadingStore, graph *commitgraphread.Reader) *Reachability {
return &Reachability{store: store, graph: graph}
}