diff options
author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | 2008-02-25 22:46:04 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-25 23:57:34 -0800 |
commit | 355885d531568e144ce5c9a2f65792a3aa8b5528 (patch) | |
tree | a450dbd70c50ade7811d90981526dc9c4849871d /cache.h | |
parent | f73df331a43a6092af427fd30bb6ce07f313743c (diff) | |
download | git-355885d531568e144ce5c9a2f65792a3aa8b5528.tar.gz git-355885d531568e144ce5c9a2f65792a3aa8b5528.tar.xz |
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>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -189,6 +189,7 @@ enum object_type { /* 5 for future expansion */ OBJ_OFS_DELTA = 6, OBJ_REF_DELTA = 7, + OBJ_ANY, OBJ_MAX, }; |