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