From 4652c0e753c88e63ba111d49aa58edc655806c03 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sat, 20 Aug 2016 01:30:05 +0200 Subject: remote and repository base on ConfigStore --- common.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'common.go') 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 -- cgit