Method
appendHash
(store storer.EncodedObjectStorer, h plumbing.Hash)
Source from the content-addressed store, hash-verified
| 38 | } |
| 39 | |
| 40 | func (w *bfsCommitIterator) appendHash(store storer.EncodedObjectStorer, h plumbing.Hash) error { |
| 41 | if w.seen[h] || w.seenExternal[h] { |
| 42 | return nil |
| 43 | } |
| 44 | c, err := GetCommit(store, h) |
| 45 | if err != nil { |
| 46 | return err |
| 47 | } |
| 48 | w.queue = append(w.queue, c) |
| 49 | return nil |
| 50 | } |
| 51 | |
| 52 | func (w *bfsCommitIterator) Next() (*Commit, error) { |
| 53 | var c *Commit |
Tested by
no test coverage detected