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

Method LooseObjectTime

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

Source from the content-addressed store, hash-verified

872}
873
874func (s *ObjectStorage) LooseObjectTime(hash plumbing.Hash) (time.Time, error) {
875 fi, err := s.dir.ObjectStat(hash)
876 if err != nil {
877 return time.Time{}, err
878 }
879 return fi.ModTime(), nil
880}
881
882func (s *ObjectStorage) DeleteLooseObject(hash plumbing.Hash) error {
883 return s.dir.ObjectDelete(hash)

Callers

nothing calls this directly

Calls 1

ObjectStatMethod · 0.80

Tested by

no test coverage detected