add generic, type aware object chain walker
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Mon, 25 Feb 2008 21:46:04 +0000 (22:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Feb 2008 07:57:34 +0000 (23:57 -0800)
commit355885d531568e144ce5c9a2f65792a3aa8b5528
treea450dbd70c50ade7811d90981526dc9c4849871d
parentf73df331a43a6092af427fd30bb6ce07f313743c
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>
Makefile
cache.h
fsck.c [new file with mode: 0644]
fsck.h [new file with mode: 0644]