unpack-objects: prevent writing of inconsistent objects
commitb41860bf28a16ad6015eb0c55dc95602f1235640
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Mon, 25 Feb 2008 21:46:11 +0000 (25 22:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Mar 2008 18:53:11 +0000 (5 10:53 -0800)
tree5c894f4e2ec1dc1e8d0bb2e2d4a7524a160e080f
parent79b1138e7894ea048008f6b99908f5cd36e94949
unpack-objects: prevent writing of inconsistent objects

This patch introduces a strict mode, which ensures that:
- no malformed object will be written
- no object with broken links will be written

The patch ensures this by delaying the write of all non blob object.
These object are written, after all objects they link to are written.

An error can only result in unreferenced objects.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-unpack-objects.txt
builtin-unpack-objects.c