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

Method ForEachObjectHash

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

Source from the content-addressed store, hash-verified

864}
865
866func (s *ObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error {
867 err := s.dir.ForEachObjectHash(fun)
868 if err == storer.ErrStop {
869 return nil
870 }
871 return err
872}
873
874func (s *ObjectStorage) LooseObjectTime(hash plumbing.Hash) (time.Time, error) {
875 fi, err := s.dir.ObjectStat(hash)

Callers 1

Calls 1

ForEachObjectHashMethod · 0.65

Tested by 1