diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-20 01:30:05 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-20 01:30:05 +0200 |
commit | 4652c0e753c88e63ba111d49aa58edc655806c03 (patch) | |
tree | 28d8570676de3d0b5802c265406a82d5ba2bf842 /common.go | |
parent | 9f49aaed839ae608a0ffdaa0656b3975d3404002 (diff) | |
download | go-git-4652c0e753c88e63ba111d49aa58edc655806c03.tar.gz |
remote and repository base on ConfigStore
Diffstat (limited to 'common.go')
-rw-r--r-- | common.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |