MCPcopy Index your code
hub / github.com/go-git/go-git / unmarshal

Method unmarshal

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

Source from the content-addressed store, hash-verified

162func isPathSep(r rune) bool { return r == '/' || r == '\\' }
163
164func (m *Submodule) unmarshal(s *format.Subsection) {
165 m.raw = s
166
167 m.Name = m.raw.Name
168 m.Path = m.raw.Option(pathKey)
169 m.URL = m.raw.Option(urlKey)
170 m.Branch = m.raw.Option(branchKey)
171}
172
173func (m *Submodule) marshal() *format.Subsection {
174 if m.raw == nil {

Callers 1

unmarshalSubmodulesFunction · 0.95

Calls 1

OptionMethod · 0.45

Tested by

no test coverage detected