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

Function NewModules

config/modules.go:36–41  ·  view source on GitHub ↗

NewModules returns a new empty Modules

()

Source from the content-addressed store, hash-verified

34
35// NewModules returns a new empty Modules
36func NewModules() *Modules {
37 return &Modules{
38 Submodules: make(map[string]*Submodule),
39 raw: format.New(),
40 }
41}
42
43const (
44 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…