summaryrefslogtreecommitdiffstatshomepage
path: root/repository/repo.go
diff options
context:
space:
mode:
authorMark <git@happybeing.com>2020-12-01 16:34:02 +0000
committerMichael Muré <batolettre@gmail.com>2020-12-05 21:41:10 +0100
commit28adf41af6a5c0f4b19875912d056b03ea6710f8 (patch)
tree912126e805afc55efa08cf38b60a782e34b4ac7a /repository/repo.go
parentecf1215ac92d96648f7fd5cc3990e81c61da43f8 (diff)
downloadgit-bug-28adf41af6a5c0f4b19875912d056b03ea6710f8.tar.gz
git-bug-28adf41af6a5c0f4b19875912d056b03ea6710f8.zip
Move new RepoStorage interface to GoGitRepo, revert repoTest
Diffstat (limited to 'repository/repo.go')
-rw-r--r--repository/repo.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/repository/repo.go b/repository/repo.go
index 93069d61..4b45a1c5 100644
--- a/repository/repo.go
+++ b/repository/repo.go
@@ -5,7 +5,6 @@ import (
"errors"
"github.com/MichaelMure/git-bug/util/lamport"
- "github.com/go-git/go-billy/v5"
)
var (
@@ -21,7 +20,6 @@ type Repo interface {
RepoKeyring
RepoCommon
RepoData
- RepoStorage
}
// ClockedRepo is a Repo that also has Lamport clocks
@@ -66,11 +64,6 @@ type RepoCommon interface {
GetRemotes() (map[string]string, error)
}
-type RepoStorage interface {
- // Storage returns a billy.Filesystem giving access to $RepoPath/.git/git-bug
- Storage() billy.Filesystem
-}
-
// RepoData give access to the git data storage
type RepoData interface {
// FetchRefs fetch git refs from a remote
@@ -152,10 +145,4 @@ type TestedRepo interface {
type repoTest interface {
// AddRemote add a new remote to the repository
AddRemote(name string, url string) error
-
- // GetLocalRemote return the URL to use to add this repo as a local remote
- GetLocalRemote() string
-
- // EraseFromDisk delete this repository entirely from the disk
- EraseFromDisk() error
}