MCPcopy Create free account
hub / github.com/git-bug/git-bug / FetchRefs

Method FetchRefs

repository/repo.go:135–135  ·  view source on GitHub ↗

FetchRefs fetch git refs matching a directory prefix to a remote Ex: prefix="foo" will fetch any remote refs matching "refs/foo/*" locally. The equivalent git refspec would be "refs/foo/*:refs/remotes/ /foo/*"

(remote string, prefixes ...string)

Source from the content-addressed store, hash-verified

133 // Ex: prefix="foo" will fetch any remote refs matching "refs/foo/*" locally.
134 // The equivalent git refspec would be "refs/foo/*:refs/remotes/<remote>/foo/*"
135 FetchRefs(remote string, prefixes ...string) (string, error)
136
137 // PushRefs push git refs matching a directory prefix to a remote
138 // Ex: prefix="foo" will push any local refs matching "refs/foo/*" to the remote.

Callers 3

FetchMethod · 0.65
FetchFunction · 0.65
FetchFunction · 0.65

Implementers 2

mockRepoDatarepository/mock_repo.go
GoGitReporepository/gogit.go

Calls

no outgoing calls

Tested by

no test coverage detected