aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/deltaobject.go
Commit message (Collapse)AuthorAgeFilesLines
* storage: reuse deltas from packfilesSantiago M. Mola2017-07-271-0/+37
* plumbing: add DeltaObject interface for EncodedObjects that are deltas and hold additional information about them, such as the hash of the base object. * plumbing/storer: add DeltaObjectStorer interface for object storers that can return DeltaObject. Note that calls to EncodedObject will never return instances of DeltaObject. That requires explicit calls to DeltaObject. * storage/filesystem: implement DeltaObjectStorer interface. * plumbing/packfile: packfile encoder now supports reusing deltas that are already computed (e.g. from an existing packfile) if the storage implements DeltaObjectStorer. Reusing deltas boosts performance of packfile generation (e.g. on push).