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

Function Fetch

entity/dag/entity_actions.go:24–26  ·  view source on GitHub ↗

Fetch retrieve updates from a remote This does not change the local entity state

(def Definition, repo repository.Repo, remote string)

Source from the content-addressed store, hash-verified

22// Fetch retrieve updates from a remote
23// This does not change the local entity state
24func Fetch(def Definition, repo repository.Repo, remote string) (string, error) {
25 return repo.FetchRefs(remote, def.Namespace)
26}
27
28// Push update a remote with the local changes
29func Push(def Definition, repo repository.Repo, remote string) (string, error) {

Callers 4

FetchFunction · 0.92
TestListLocalIdsFunction · 0.70
TestMergeFunction · 0.70
PullFunction · 0.70

Calls 1

FetchRefsMethod · 0.65

Tested by 2

TestListLocalIdsFunction · 0.56
TestMergeFunction · 0.56