diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-07 20:29:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-07 20:29:58 +0100 |
commit | 0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23 (patch) | |
tree | b9c7485fe99e6e89fa736ceb0223aeb2ecddb77c /common.go | |
parent | f6ed7424cbf33c7013332d7e95b4262a4bc4a523 (diff) | |
download | go-git-0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23.tar.gz |
global storage interface refactor (#112)
* core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and
ReferenceStorer
* rebase
* general, changes request by @alcortes
* general, changes request by @alcortes
Diffstat (limited to 'common.go')
-rw-r--r-- | common.go | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -8,11 +8,14 @@ import ( "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 +// Storer is a generic storage of objects, references and any information +// related to a particular repository. Some Storer implementations persist the +// information in an system directory (such as `.git`) and others +// implementations are in memmory being ephemeral +type Storer interface { + core.ObjectStorer + core.ReferenceStorer + config.ConfigStorer } // countLines returns the number of lines in a string à la git, this is @@ -52,4 +55,5 @@ func checkClose(c io.Closer, err *error) { } } +// DateFormat is the format being use in the orignal git implementation const DateFormat = "Mon Jan 02 15:04:05 2006 -0700" |