aboutsummaryrefslogtreecommitdiffstats
path: root/common.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-20 01:30:05 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-20 01:30:05 +0200
commit4652c0e753c88e63ba111d49aa58edc655806c03 (patch)
tree28d8570676de3d0b5802c265406a82d5ba2bf842 /common.go
parent9f49aaed839ae608a0ffdaa0656b3975d3404002 (diff)
downloadgo-git-4652c0e753c88e63ba111d49aa58edc655806c03.tar.gz
remote and repository base on ConfigStore
Diffstat (limited to 'common.go')
-rw-r--r--common.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/common.go b/common.go
index d60f5d9..dc35931 100644
--- a/common.go
+++ b/common.go
@@ -3,8 +3,18 @@ package git
import (
"io"
"strings"
+
+ "gopkg.in/src-d/go-git.v4/config"
+ "gopkg.in/src-d/go-git.v4/core"
)
+// Storage storage of objects and references
+type Storage interface {
+ ConfigStorage() config.ConfigStorage
+ ObjectStorage() core.ObjectStorage
+ ReferenceStorage() core.ReferenceStorage
+}
+
// countLines returns the number of lines in a string à la git, this is
// The newline character is assumed to be '\n'. The empty string
// contains 0 lines. If the last line of the string doesn't end with a