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

Method unmarshal

config/modules.go:112–119  ·  view source on GitHub ↗
(s *format.Subsection)

Source from the content-addressed store, hash-verified

110}
111
112func (m *Submodule) unmarshal(s *format.Subsection) {
113 m.raw = s
114
115 m.Name = m.raw.Name
116 m.Path = m.raw.Option(pathKey)
117 m.URL = m.raw.Option(urlKey)
118 m.Branch = m.raw.Option(branchKey)
119}
120
121func (m *Submodule) marshal() *format.Subsection {
122 if m.raw == nil {

Callers 1

unmarshalSubmodulesFunction · 0.95

Calls 1

OptionMethod · 0.45

Tested by

no test coverage detected