author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | |
Mon, 25 Feb 2008 21:46:11 +0000 (22:46 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 5 Mar 2008 18:53:11 +0000 (10:53 -0800) | ||
commit | b41860bf28a16ad6015eb0c55dc95602f1235640 | |
tree | 5c894f4e2ec1dc1e8d0bb2e2d4a7524a160e080f | tree | snapshot |
parent | 79b1138e7894ea048008f6b99908f5cd36e94949 | commit | diff |
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>
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 | diff | blob | history | |
builtin-unpack-objects.c | diff | blob | history |