author | Nicolas Pitre <nico@fluxnic.net> | |
Wed, 17 Feb 2010 19:05:56 +0000 (14:05 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Feb 2010 19:08:44 +0000 (11:08 -0800) | ||
commit | b500d5e11ea67d29dd7be622f65571d611d6e9a3 | |
tree | acd3a4b4885a6b697644bdf7a5bc100081d64ad9 | tree | snapshot |
parent | 8c2ca8dd8a5d6d8beaa0a4abed0c135004eef772 | commit | diff |
fast-import: use the diff_delta() max_delta_size argument
This let diff_delta() abort early if it is going to bust the given
size limit. Also, only objects larger than 20 bytes are considered
as objects smaller than that are most certainly going to produce
larger deltas than the original object due to the additional headers.
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This let diff_delta() abort early if it is going to bust the given
size limit. Also, only objects larger than 20 bytes are considered
as objects smaller than that are most certainly going to produce
larger deltas than the original object due to the additional headers.
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c | diff | blob | history |