NewGraphCommitNodeIndex returns CommitNodeIndex implementation that uses commit-graph files as backing storage and falls back to object storage when necessary
(commitGraph commitgraph.Index, s storer.EncodedObjectStorer)
| 37 | // NewGraphCommitNodeIndex returns CommitNodeIndex implementation that uses commit-graph |
| 38 | // files as backing storage and falls back to object storage when necessary |
| 39 | func NewGraphCommitNodeIndex(commitGraph commitgraph.Index, s storer.EncodedObjectStorer) CommitNodeIndex { |
| 40 | return &graphCommitNodeIndex{commitGraph, s} |
| 41 | } |
| 42 | |
| 43 | func (gci *graphCommitNodeIndex) Get(hash plumbing.Hash) (CommitNode, error) { |
| 44 | if gci.commitGraph != nil { |
no outgoing calls
searching dependent graphs…