MCPcopy Index your code
hub / github.com/gogs/gogs / RemoteAdd

Method RemoteAdd

internal/gitutil/module.go:10–10  ·  view source on GitHub ↗

RemoteAdd adds a new remote to the repository in given path.

(repoPath, name, url string, opts ...git.RemoteAddOptions)

Source from the content-addressed store, hash-verified

8type ModuleStore interface {
9 // RemoteAdd adds a new remote to the repository in given path.
10 RemoteAdd(repoPath, name, url string, opts ...git.RemoteAddOptions) error
11 // DiffNameOnly returns a list of changed files between base and head revisions
12 // of the repository in given path.
13 DiffNameOnly(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error)

Callers 5

SaveAddressMethod · 0.65
UpdatePatchMethod · 0.65
PushToBaseRepoMethod · 0.65
PullRequestMetaMethod · 0.65
RemoteAddMethod · 0.65

Implementers 2

MockModuleStoreinternal/gitutil/mocks.go
moduleinternal/gitutil/module.go

Calls

no outgoing calls

Tested by

no test coverage detected