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

Method PushRefs

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

PushRefs push git refs matching a directory prefix to a remote Ex: prefix="foo" will push any local refs matching "refs/foo/*" to the remote. The equivalent git refspec would be "refs/foo/*:refs/foo/*" Additionally, PushRefs will update the local references in refs/remotes/ /foo to match the

(remote string, prefixes ...string)

Source from the content-addressed store, hash-verified

141 // Additionally, PushRefs will update the local references in refs/remotes/<remote>/foo to match
142 // the remote state.
143 PushRefs(remote string, prefixes ...string) (string, error)
144
145 // StoreData will store arbitrary data and return the corresponding hash
146 StoreData(data []byte) (Hash, error)

Callers 3

PushMethod · 0.65
PushFunction · 0.65
PushFunction · 0.65

Implementers 2

mockRepoDatarepository/mock_repo.go
GoGitReporepository/gogit.go

Calls

no outgoing calls

Tested by

no test coverage detected