aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>2008-02-25 22:46:04 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-25 23:57:34 -0800
commit355885d531568e144ce5c9a2f65792a3aa8b5528 (patch)
treea450dbd70c50ade7811d90981526dc9c4849871d /cache.h
parentf73df331a43a6092af427fd30bb6ce07f313743c (diff)
downloadgit-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 43ba6a3ba..d3b898708 100644
--- a/cache.h
+++ b/cache.h
@@ -189,6 +189,7 @@ enum object_type {
/* 5 for future expansion */
OBJ_OFS_DELTA = 6,
OBJ_REF_DELTA = 7,
+ OBJ_ANY,
OBJ_MAX,
};