aboutsummaryrefslogtreecommitdiffstats
path: root/entity/entity_actions.go
blob: 34e76a6252f374fbcbf2e60184851c54887febdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package entity

import (
	"fmt"

	"github.com/MichaelMure/git-bug/repository"
)

func ListLocalIds(typename string, repo repository.RepoData) ([]Id, error) {
	refs, err := repo.ListRefs(fmt.Sprintf("refs/%s/", typename))
	if err != nil {
		return nil, err
	}
	return RefsToIds(refs), nil
}

func Fetch() {

}

func Pull() {

}

func Push() {

}

func Remove() error {
	panic("")
}