aboutsummaryrefslogblamecommitdiffstats
path: root/entity/entity_actions.go
blob: 34e76a6252f374fbcbf2e60184851c54887febdb (plain) (tree)


























                                                                            



                     
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("")
}