aboutsummaryrefslogtreecommitdiffstats
path: root/tree.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-11-07 20:29:58 +0100
committerGitHub <noreply@github.com>2016-11-07 20:29:58 +0100
commit0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23 (patch)
treeb9c7485fe99e6e89fa736ceb0223aeb2ecddb77c /tree.go
parentf6ed7424cbf33c7013332d7e95b4262a4bc4a523 (diff)
downloadgo-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 'tree.go')
-rw-r--r--tree.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree.go b/tree.go
index 9c97872..4d08396 100644
--- a/tree.go
+++ b/tree.go
@@ -51,7 +51,7 @@ func (t *Tree) File(path string) (*File, error) {
return nil, ErrFileNotFound
}
- obj, err := t.r.s.ObjectStorage().Get(core.BlobObject, e.Hash)
+ obj, err := t.r.s.Object(core.BlobObject, e.Hash)
if err != nil {
return nil, err
}
@@ -84,7 +84,7 @@ func (t *Tree) dir(baseName string) (*Tree, error) {
return nil, errDirNotFound
}
- obj, err := t.r.s.ObjectStorage().Get(core.TreeObject, entry.Hash)
+ obj, err := t.r.s.Object(core.TreeObject, entry.Hash)
if err != nil {
return nil, err
}