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

Function unmarshalSubmodules

config/config.go:375–387  ·  view source on GitHub ↗
(fc *format.Config, submodules map[string]*Submodule)

Source from the content-addressed store, hash-verified

373}
374
375func unmarshalSubmodules(fc *format.Config, submodules map[string]*Submodule) {
376 s := fc.Section(submoduleSection)
377 for _, sub := range s.Subsections {
378 m := &Submodule{}
379 m.unmarshal(sub)
380
381 if m.Validate() == ErrModuleBadPath {
382 continue
383 }
384
385 submodules[m.Name] = m
386 }
387}
388
389func (c *Config) unmarshalBranches() error {
390 bs := c.Raw.Section(branchSection)

Callers 2

UnmarshalMethod · 0.85
UnmarshalMethod · 0.85

Calls 3

unmarshalMethod · 0.95
ValidateMethod · 0.95
SectionMethod · 0.80

Tested by

no test coverage detected