MCPcopy Create free account
hub / github.com/cli/cli / GitProtocol

Method GitProtocol

internal/config/config.go:144–147  ·  view source on GitHub ↗
(hostname string)

Source from the content-addressed store, hash-verified

142}
143
144func (c *cfg) GitProtocol(hostname string) gh.ConfigEntry {
145 // Intentionally panic if there is no user provided value or default value (which would be a programmer error)
146 return c.GetOrDefault(hostname, gitProtocolKey).Unwrap()
147}
148
149func (c *cfg) HTTPUnixSocket(hostname string) gh.ConfigEntry {
150 // Intentionally panic if there is no user provided value or default value (which would be a programmer error)

Callers 1

NewMockConfigFromStringFunction · 0.95

Calls 2

GetOrDefaultMethod · 0.95
UnwrapMethod · 0.45

Tested by

no test coverage detected