diff options
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 |