aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/packfile/index.go
Commit message (Collapse)AuthorAgeFilesLines
* packfile: create packfile.Index and reuse itSantiago M. Mola2017-07-261-0/+82
There was an internal type (i.e. storage/filesystem.idx) to use as in-memory index for packfiles. This was not convenient to reuse in the packfile. This commit creates a new representation (format/packfile.Index) that can be converted to and from idxfile.Idxfile. A packfile.Index now contains the functionality that was scattered on storage/filesystem.idx and packfile.Decoder's internals. storage/filesystem now reuses packfile.Index instances and this also results in higher cache hit ratios when resolving deltas.