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

Method Fetch

cache/repo_cache_common.go:75–83  ·  view source on GitHub ↗

Fetch retrieve updates from a remote This does not change the local bugs or identities state

(remote string)

Source from the content-addressed store, hash-verified

73// Fetch retrieve updates from a remote
74// This does not change the local bugs or identities state
75func (c *RepoCache) Fetch(remote string) (string, error) {
76 prefixes := make([]string, len(c.subcaches))
77 for i, subcache := range c.subcaches {
78 prefixes[i] = subcache.GetNamespace()
79 }
80
81 // fetch everything at once, to have a single auth step if required.
82 return c.repo.FetchRefs(remote, prefixes...)
83}
84
85// RemoveAll deletes all entities from the cache and the disk.
86func (c *RepoCache) RemoveAll() error {

Callers 5

PullMethod · 0.95
TestRemoveFunction · 0.80
runPullFunction · 0.80
FetchRefsMethod · 0.80
pullMethod · 0.80

Calls 2

GetNamespaceMethod · 0.65
FetchRefsMethod · 0.65

Tested by 1

TestRemoveFunction · 0.64