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

Method marshal

config/url.go:48–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func (u *URL) marshal() *format.Subsection {
49 if u.raw == nil {
50 u.raw = &format.Subsection{}
51 }
52
53 u.raw.Name = u.Name
54 u.raw.SetOption(insteadOfKey, u.InsteadOf)
55
56 return u.raw
57}
58
59func findLongestInsteadOfMatch(remoteURL string, urls map[string]*URL) *URL {
60 var longestMatch *URL

Callers

nothing calls this directly

Calls 1

SetOptionMethod · 0.45

Tested by

no test coverage detected