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

Method ForEachObjectHash

storage/memory/storage.go:176–187  ·  view source on GitHub ↗
(fun func(plumbing.Hash) error)

Source from the content-addressed store, hash-verified

174}
175
176func (o *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error {
177 for h := range o.Objects {
178 err := fun(h)
179 if err != nil {
180 if err == storer.ErrStop {
181 return nil
182 }
183 return err
184 }
185 }
186 return nil
187}
188
189func (o *ObjectStorage) ObjectPacks() ([]plumbing.Hash, error) {
190 return nil, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected