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

Function NewRemote

remote.go:72–74  ·  view source on GitHub ↗

NewRemote creates a new Remote. The intended purpose is to use the Remote for tasks such as listing remote references (like using git ls-remote). Otherwise Remotes should be created via the use of a Repository.

(s storage.Storer, c *config.RemoteConfig)

Source from the content-addressed store, hash-verified

70// The intended purpose is to use the Remote for tasks such as listing remote references (like using git ls-remote).
71// Otherwise Remotes should be created via the use of a Repository.
72func NewRemote(s storage.Storer, c *config.RemoteConfig) *Remote {
73 return &Remote{s: s, c: c}
74}
75
76// Config returns the RemoteConfig object used to instantiate this Remote.
77func (r *Remote) Config() *config.RemoteConfig {

Callers 15

RemoteMethod · 0.85
RemotesMethod · 0.85
CreateRemoteMethod · 0.85
CreateRemoteAnonymousMethod · 0.85
TestFetchWildcardMethod · 0.85
TestFetchExactSHA1Method · 0.85

Calls

no outgoing calls