MCPcopy
hub / github.com/go-git/go-git / NewRemote

Function NewRemote

remote.go:73–75  ·  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

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…