Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Apr 21, 2019
1 parent 980018a commit 9abc1a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plumbing/format/packfile/packfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ func (p *Packfile) objectAtOffset(offset int64, hash plumbing.Hash) (plumbing.En
return p.getNextObject(h)
}

// For delta objects we read the delta data and create a special object
// that will hold them in memory and resolve them lazily to the referenced
// object.
// For delta objects we read the delta data and apply the small object
// optimization only if the expanded version of the object still meets
// the small object threshold condition.
buf := bufPool.Get().(*bytes.Buffer)
buf.Reset()
if _, _, err := p.s.NextObject(buf); err != nil {
Expand Down

0 comments on commit 9abc1a1

Please sign in to comment.