MCPcopy Create free account
hub / github.com/go-git/go-git / appendHash

Method appendHash

plumbing/object/commit_walker_bfs.go:40–50  ·  view source on GitHub ↗
(store storer.EncodedObjectStorer, h plumbing.Hash)

Source from the content-addressed store, hash-verified

38}
39
40func (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
52func (w *bfsCommitIterator) Next() (*Commit, error) {
53 var c *Commit

Callers 1

NextMethod · 0.95

Calls 1

GetCommitFunction · 0.85

Tested by

no test coverage detected