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

Function NewModules

config/modules.go:32–37  ·  view source on GitHub ↗

NewModules returns a new empty Modules

()

Source from the content-addressed store, hash-verified

30
31// NewModules returns a new empty Modules
32func NewModules() *Modules {
33 return &Modules{
34 Submodules: make(map[string]*Submodule),
35 raw: format.New(),
36 }
37}
38
39const (
40 pathKey = "path"

Callers 4

readGitmodulesFileMethod · 0.92
TestMarshalMethod · 0.85
TestUnmarshalMethod · 0.85
TestUnmarshalMarshalMethod · 0.85

Calls

no outgoing calls

Tested by 3

TestMarshalMethod · 0.68
TestUnmarshalMethod · 0.68
TestUnmarshalMarshalMethod · 0.68