]> git.proxmox.com Git - libgit2.git/commit
indexer: do multiple passes over the delta list
authorCarlos Martín Nieto <cmn@dwim.me>
Wed, 2 Oct 2013 10:22:54 +0000 (12:22 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Fri, 4 Oct 2013 08:18:20 +0000 (10:18 +0200)
commitcf0582b43ce591e7923637d2c8925028aaa5977b
treef8f615e178b16967fd9f89c8bb155f531294bdcf
parent71e33d2649f990086237a6cd0fdb7f7d6f742b51
indexer: do multiple passes over the delta list

Though unusual, a packfile may contain a delta whose base is a delta
that comes later. In order index such a packfile, we must not give up
on the first failure to resolve a delta, but keep it around.

If there is a pass which makes no progress, this indicates that the
packfile is broken, so fail accordingly.
src/indexer.c
tests-clar/pack/indexer.c [new file with mode: 0644]