author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | |
Mon, 25 Feb 2008 21:46:04 +0000 (22:46 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 26 Feb 2008 07:57:34 +0000 (23:57 -0800) | ||
commit | 355885d531568e144ce5c9a2f65792a3aa8b5528 | |
tree | a450dbd70c50ade7811d90981526dc9c4849871d | tree | snapshot |
parent | f73df331a43a6092af427fd30bb6ce07f313743c | commit | diff |
add generic, type aware object chain walker
The requirements are:
* it may not crash on NULL pointers
* a callback function is needed, as index-pack/unpack-objects
need to do different things
* the type information is needed to check the expected <-> real type
and print better error messages
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The requirements are:
* it may not crash on NULL pointers
* a callback function is needed, as index-pack/unpack-objects
need to do different things
* the type information is needed to check the expected <-> real type
and print better error messages
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
cache.h | diff | blob | history | |
fsck.c | [new file with mode: 0644] | blob |
fsck.h | [new file with mode: 0644] | blob |