MCPcopy
hub / github.com/cli/cli / NewRemote

Function NewRemote

git/objects.go:42–49  ·  view source on GitHub ↗
(name string, u string)

Source from the content-addressed store, hash-verified

40}
41
42func NewRemote(name string, u string) *Remote {
43 pu, _ := url.Parse(u)
44 return &Remote{
45 Name: name,
46 FetchURL: pu,
47 PushURL: pu,
48 }
49}
50
51// Ref represents a git commit reference.
52type Ref struct {

Callers 5

Test_BaseRepoFunction · 0.92
Test_SmartBaseRepoFunction · 0.92
Test_OverrideBaseRepoFunction · 0.92
Test_remoteResolverFunction · 0.92

Calls

no outgoing calls

Tested by 5

Test_BaseRepoFunction · 0.74
Test_SmartBaseRepoFunction · 0.74
Test_OverrideBaseRepoFunction · 0.74
Test_remoteResolverFunction · 0.74