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

Function ListLocalIds

entity/dag/entity_actions.go:14–20  ·  view source on GitHub ↗

ListLocalIds list all the available local Entity's Id

(def Definition, repo repository.RepoData)

Source from the content-addressed store, hash-verified

12
13// ListLocalIds list all the available local Entity's Id
14func ListLocalIds(def Definition, repo repository.RepoData) ([]entity.Id, error) {
15 refs, err := repo.ListRefs(fmt.Sprintf("refs/%s/", def.Namespace))
16 if err != nil {
17 return nil, err
18 }
19 return entity.RefsToIds(refs), nil
20}
21
22// Fetch retrieve updates from a remote
23// This does not change the local entity state

Callers 3

ListLocalIdsFunction · 0.92
listLocalIdsFunction · 0.70
RemoveAllFunction · 0.70

Calls 2

RefsToIdsFunction · 0.92
ListRefsMethod · 0.65

Tested by 1

listLocalIdsFunction · 0.56