MCPcopy
hub / github.com/go-git/go-git / LooseObjectTime

Method LooseObjectTime

storage/filesystem/object.go:883–889  ·  view source on GitHub ↗
(hash plumbing.Hash)

Source from the content-addressed store, hash-verified

881}
882
883func (s *ObjectStorage) LooseObjectTime(hash plumbing.Hash) (time.Time, error) {
884 fi, err := s.dir.ObjectStat(hash)
885 if err != nil {
886 return time.Time{}, err
887 }
888 return fi.ModTime(), nil
889}
890
891func (s *ObjectStorage) DeleteLooseObject(hash plumbing.Hash) error {
892 return s.dir.ObjectDelete(hash)

Callers

nothing calls this directly

Calls 2

ObjectStatMethod · 0.80
ModTimeMethod · 0.80

Tested by

no test coverage detected