diff options
Diffstat (limited to 'plumbing/object/commitnode_graph.go')
-rw-r--r-- | plumbing/object/commitnode_graph.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plumbing/object/commitnode_graph.go b/plumbing/object/commitnode_graph.go index c57a258..9fc28a2 100644 --- a/plumbing/object/commitnode_graph.go +++ b/plumbing/object/commitnode_graph.go @@ -33,6 +33,8 @@ type graphCommitNodeIndex struct { s storer.EncodedObjectStorer
}
+// NewGraphCommitNodeIndex returns CommitNodeIndex implementation that uses commit-graph
+// files as backing storage and falls back to object storage when necessary
func NewGraphCommitNodeIndex(commitGraph commitgraph.Index, s storer.EncodedObjectStorer) CommitNodeIndex {
return &graphCommitNodeIndex{commitGraph, s}
}
|