MCPcopy Index your code
hub / github.com/go-git/go-git / ForEachObjectHash

Method ForEachObjectHash

storage/filesystem/object.go:875–881  ·  view source on GitHub ↗
(fun func(plumbing.Hash) error)

Source from the content-addressed store, hash-verified

873}
874
875func (s *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error {
876 err := s.dir.ForEachObjectHash(fun)
877 if err == storer.ErrStop {
878 return nil
879 }
880 return err
881}
882
883func (s *ObjectStorage) LooseObjectTime(hash plumbing.Hash) (time.Time, error) {
884 fi, err := s.dir.ObjectStat(hash)

Callers 1

Calls 1

ForEachObjectHashMethod · 0.65

Tested by 1