MCPcopy Index your code
hub / github.com/git-bug/git-bug / Push

Method Push

cache/repo_cache_common.go:126–134  ·  view source on GitHub ↗

Push update a remote with the local changes

(remote string)

Source from the content-addressed store, hash-verified

124
125// Push update a remote with the local changes
126func (c *RepoCache) Push(remote string) (string, error) {
127 prefixes := make([]string, len(c.subcaches))
128 for i, subcache := range c.subcaches {
129 prefixes[i] = subcache.GetNamespace()
130 }
131
132 // push everything at once, to have a single auth step if required
133 return c.repo.PushRefs(remote, prefixes...)
134}
135
136// Pull will do a Fetch + MergeAll
137// This function will return an error if a merge fail

Callers 5

TestCachePushPullFunction · 0.80
TestRemoveFunction · 0.80
runPushFunction · 0.80
PushRefsMethod · 0.80
pushMethod · 0.80

Calls 2

GetNamespaceMethod · 0.65
PushRefsMethod · 0.65

Tested by 2

TestCachePushPullFunction · 0.64
TestRemoveFunction · 0.64