NewObjectCommitNodeIndex returns CommitNodeIndex implementation that uses only object storage to load the nodes
(s storer.EncodedObjectStorer)
| 20 | // NewObjectCommitNodeIndex returns CommitNodeIndex implementation that uses |
| 21 | // only object storage to load the nodes |
| 22 | func NewObjectCommitNodeIndex(s storer.EncodedObjectStorer) CommitNodeIndex { |
| 23 | return &objectCommitNodeIndex{s} |
| 24 | } |
| 25 | |
| 26 | func (oci *objectCommitNodeIndex) Get(hash plumbing.Hash) (CommitNode, error) { |
| 27 | commit, err := object.GetCommit(oci.s, hash) |
no outgoing calls
searching dependent graphs…