aboutsummaryrefslogtreecommitdiffstats
path: root/entity/entity_actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'entity/entity_actions.go')
-rw-r--r--entity/entity_actions.go27
1 files changed, 27 insertions, 0 deletions
diff --git a/entity/entity_actions.go b/entity/entity_actions.go
new file mode 100644
index 00000000..02e76487
--- /dev/null
+++ b/entity/entity_actions.go
@@ -0,0 +1,27 @@
+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() {
+
+}