(hash plumbing.Hash)
| 24 | } |
| 25 | |
| 26 | func (oci *objectCommitNodeIndex) Get(hash plumbing.Hash) (CommitNode, error) { |
| 27 | commit, err := object.GetCommit(oci.s, hash) |
| 28 | if err != nil { |
| 29 | return nil, err |
| 30 | } |
| 31 | |
| 32 | return &objectCommitNode{ |
| 33 | nodeIndex: oci, |
| 34 | commit: commit, |
| 35 | }, nil |
| 36 | } |
| 37 | |
| 38 | // objectCommitNodeIndex is an index that can load CommitNode objects only from the |
| 39 | // object store. |
nothing calls this directly
no test coverage detected