diff options
author | Mark <git@happybeing.com> | 2020-12-01 16:34:02 +0000 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-12-05 21:41:10 +0100 |
commit | 28adf41af6a5c0f4b19875912d056b03ea6710f8 (patch) | |
tree | 912126e805afc55efa08cf38b60a782e34b4ac7a /repository/gogit.go | |
parent | ecf1215ac92d96648f7fd5cc3990e81c61da43f8 (diff) | |
download | git-bug-28adf41af6a5c0f4b19875912d056b03ea6710f8.tar.gz |
Move new RepoStorage interface to GoGitRepo, revert repoTest
Diffstat (limited to 'repository/gogit.go')
-rw-r--r-- | repository/gogit.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/repository/gogit.go b/repository/gogit.go index c59409d4..45906ea4 100644 --- a/repository/gogit.go +++ b/repository/gogit.go @@ -13,6 +13,7 @@ import ( "sync" "time" + "github.com/go-git/go-billy" gogit "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/config" "github.com/go-git/go-git/v5/plumbing" @@ -32,6 +33,12 @@ type GoGitRepo struct { clocks map[string]lamport.Clock keyring Keyring + RepoStorage +} + +type RepoStorage interface { + // Storage returns a billy.Filesystem giving access to $RepoPath/.git/git-bug + Storage() billy.Filesystem } func NewGoGitRepo(path string, clockLoaders []ClockLoader) (*GoGitRepo, error) { |