entity_actions.go
1package entity
2
3import (
4 "fmt"
5
6 "github.com/MichaelMure/git-bug/repository"
7)
8
9func ListLocalIds(typename string, repo repository.RepoData) ([]Id, error) {
10 refs, err := repo.ListRefs(fmt.Sprintf("refs/%s/", typename))
11 if err != nil {
12 return nil, err
13 }
14 return RefsToIds(refs), nil
15}
16
17func Fetch() {
18
19}
20
21func Pull() {
22
23}
24
25func Push() {
26
27}
28
29func Remove() error {
30 panic("")
31}