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)
| 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. |
| 73 | func 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. |
| 78 | func (r *Remote) Config() *config.RemoteConfig { |
no outgoing calls
searching dependent graphs…