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

Method Reindex

storage/filesystem/object.go:72–74  ·  view source on GitHub ↗

Reindex indexes again all packfiles. Useful if git changed packfiles externally

()

Source from the content-addressed store, hash-verified

70
71// Reindex indexes again all packfiles. Useful if git changed packfiles externally
72func (s *ObjectStorage) Reindex() {
73 s.index = nil
74}
75
76func (s *ObjectStorage) loadIdxFile(h plumbing.Hash) (err error) {
77 f, err := s.dir.ObjectPackIdx(h)

Callers 1

TestPackfileReindexMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestPackfileReindexMethod · 0.64