]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/pack-objects.c
pack-objects: Prefer shallower deltas if the size is equal
authorBrian Downing <bdowning@lavos.net>
Mon, 9 Jul 2007 04:45:21 +0000 (23:45 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jul 2007 06:48:17 +0000 (23:48 -0700)
commit848d732c10616269886d0b9c82e434b65ffc33f0
tree8b870e4121957b3c81be9d8beb86593e2e7fe672
parent1ed84157a21a3e868228b15588e4aadfbe5a030b
pack-objects: Prefer shallower deltas if the size is equal

Change "try_delta" so that if it finds a delta that has the same size
but shallower depth than the existing delta, it will prefer the
shallower one.  This makes certain delta trees vastly less deep.

Signed-off-by: Brian Downing <bdowning@lavos.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c