MCPcopy
hub / github.com/cli/cli / GitProtocol

Method GitProtocol

internal/gh/gh.go:49–49  ·  view source on GitHub ↗

GitProtocol returns the configured git protocol, optionally scoped by host.

(hostname string)

Source from the content-addressed store, hash-verified

47 Editor(hostname string) ConfigEntry
48 // GitProtocol returns the configured git protocol, optionally scoped by host.
49 GitProtocol(hostname string) ConfigEntry
50 // HTTPUnixSocket returns the configured HTTP unix socket, optionally scoped by host.
51 HTTPUnixSocket(hostname string) ConfigEntry
52 // Pager returns the configured Pager, optionally scoped by host.

Callers 13

refreshRunFunction · 0.65
statusRunFunction · 0.65
cloneRunFunction · 0.65
cloneRunFunction · 0.65
forkRunFunction · 0.65
createFromScratchFunction · 0.65
createFromTemplateFunction · 0.65
createFromLocalFunction · 0.65
updateRemoteFunction · 0.65
checkoutRunFunction · 0.65
handlePushFunction · 0.65
installGitMethod · 0.65

Implementers 2

cfginternal/config/config.go
ConfigMockinternal/gh/mock/config.go

Calls

no outgoing calls

Tested by

no test coverage detected