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

Method SetIndex

storage/memory/storage.go:72–75  ·  view source on GitHub ↗
(idx *index.Index)

Source from the content-addressed store, hash-verified

70}
71
72func (c *IndexStorage) SetIndex(idx *index.Index) error {
73 c.index = idx
74 return nil
75}
76
77func (c *IndexStorage) Index() (*index.Index, error) {
78 if c.index == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected