driusan / dgit

A Pure Go Git Implementation
MIT License
112 stars 10 forks source link

Add support for deltas in git pack-objects and fix tests #271

Closed driusan closed 4 years ago

driusan commented 4 years ago

This adds support for calculating either ref of ofs deltas in git pack-objects. It fixes all of the tests of t5300-pack-object.sh of the official git test suite up until it starts testing with git verify-pack (which we don't currently have any implementation of.)

Other than deltas, this mostly involved improving support for GIT_OBJECTS_DIRECTORY throughout dgit and implementing index-pack --keep.