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

Method Module

storage/transactional/storage.go:66–78  ·  view source on GitHub ↗

Module it honors the storage.ModuleStorer interface.

(name string)

Source from the content-addressed store, hash-verified

64
65// Module it honors the storage.ModuleStorer interface.
66func (s *basic) Module(name string) (storage.Storer, error) {
67 base, err := s.s.Module(name)
68 if err != nil {
69 return nil, err
70 }
71
72 temporal, err := s.temporal.Module(name)
73 if err != nil {
74 return nil, err
75 }
76
77 return NewStorage(base, temporal), nil
78}
79
80// Commit it copies the content of the temporal storage into the base storage.
81func (s *basic) Commit() error {

Callers

nothing calls this directly

Calls 2

NewStorageFunction · 0.70
ModuleMethod · 0.65

Tested by

no test coverage detected