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

Commit 72b97da

Browse files
committed
Update comment
Signed-off-by: Filip Navara <[email protected]>
1 parent 980018a commit 72b97da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plumbing/format/packfile/packfile.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ func (p *Packfile) objectAtOffset(offset int64, hash plumbing.Hash) (plumbing.En
208208
return p.getNextObject(h)
209209
}
210210

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

0 commit comments

Comments
 (0)