diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-01-09 10:59:06 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-01-09 12:46:42 -0800 |
commit | 522e6da7b7c6efe9f4855e74d71139e785552bf1 (patch) | |
tree | 1efdafe0ec2fe02c15dd3ff7b3c1a74c0f198768 /strbuf.c | |
parent | 38edfb700ddd2939193d52b64f9358331525d755 (diff) | |
download | git-nd/index-pack-no-recurse.tar.gz |
index-pack: eliminate unlimited recursion in get_delta_base()nd/index-pack-no-recurse
Revert the order of delta applying so that by the time a delta is
applied, its base is either non-delta or already inflated.
get_delta_base() is still recursive, but because base's data is always
ready, the inner get_delta_base() call never has any chance to call
itself again.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.c')
0 files changed, 0 insertions, 0 deletions