diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-08-22 01:12:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 01:12:31 +0200 |
commit | cdfa0bb8d987272b5729e565dbcc64f07963d77d (patch) | |
tree | ed946f1da370426f6c6965d8e713a001df9f8924 /plumbing/format/packfile/packfile.go | |
parent | cc27d4a1789f75586694ff042fc9ab4cbc8b1385 (diff) | |
parent | f84c6b194f2eced0c068b9cdc9264d30e6d2021b (diff) | |
download | go-git-cdfa0bb8d987272b5729e565dbcc64f07963d77d.tar.gz |
Merge pull request #927 from jfontan/fix/iterate-objects-by-offset
plumbing/idxfile: object iterators returns entries in offset order
Diffstat (limited to 'plumbing/format/packfile/packfile.go')
-rw-r--r-- | plumbing/format/packfile/packfile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/format/packfile/packfile.go b/plumbing/format/packfile/packfile.go index 5feb781..18fcca7 100644 --- a/plumbing/format/packfile/packfile.go +++ b/plumbing/format/packfile/packfile.go @@ -394,7 +394,7 @@ func (p *Packfile) GetByType(typ plumbing.ObjectType) (storer.EncodedObjectIter, plumbing.TreeObject, plumbing.CommitObject, plumbing.TagObject: - entries, err := p.Entries() + entries, err := p.EntriesByOffset() if err != nil { return nil, err } |