diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-11 18:07:29 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-11 18:07:29 +0200 |
commit | 1f64d789038594098ea2c9cf796391f101d0bea5 (patch) | |
tree | 50fb530fc2e48560e70489dc81758f54822dcf50 /formats/packfile/seekable.go | |
parent | c1e277a7ca75ff84741d75ad45e29a2ff3e633e3 (diff) | |
download | go-git-1f64d789038594098ea2c9cf796391f101d0bea5.tar.gz |
core: new MemoryObject, move from memory.Object, packfile.Parser, base on new ObjectStorage interface
Diffstat (limited to 'formats/packfile/seekable.go')
-rw-r--r-- | formats/packfile/seekable.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/formats/packfile/seekable.go b/formats/packfile/seekable.go index 37b4ee9..65c8a69 100644 --- a/formats/packfile/seekable.go +++ b/formats/packfile/seekable.go @@ -104,5 +104,6 @@ func (r *Seekable) RecallByOffset(o int64) (obj core.Object, err error) { return nil, err } - return NewParser(r).ReadObject() + obj = &core.MemoryObject{} + return obj, NewParser(r).FillObject(obj) } |