author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Sat, 14 Jan 2012 12:19:55 +0000 (19:19 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 16 Jan 2012 22:34:33 +0000 (14:34 -0800) | ||
commit | 20e95d0a8475ce467903e1aaad5c2fd47777fcc8 | |
tree | 24b5ad7cf20419e36b7f751158b03a30a97bc060 | tree | snapshot |
parent | 2baad220138b10582c55ef942466f2b8df18944f | commit | diff |
index-pack: eliminate unlimited recursion in get_base_data()
Revese the order of delta applying so that by the time a delta is
applied, its base is either non-delta or already inflated.
get_base_data() is still recursive, but because base's data is always
ready, the inner get_base_data() 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>
Revese the order of delta applying so that by the time a delta is
applied, its base is either non-delta or already inflated.
get_base_data() is still recursive, but because base's data is always
ready, the inner get_base_data() 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>
builtin/index-pack.c | diff | blob | history |