aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-24 00:51:01 -0800
committerJunio C Hamano <gitster@pobox.com>2008-02-18 00:51:05 -0800
commit8177631547e4d10ae071def07eff83e056092bfa (patch)
treeb926ce332cae49c9c9b86ccf824a551923bf76ff /cache.h
parent525ab63950e324823dd45423104cdcf5e46e2610 (diff)
downloadgit-8177631547e4d10ae071def07eff83e056092bfa.tar.gz
git-8177631547e4d10ae071def07eff83e056092bfa.tar.xz
expose a helper function peel_to_type().
This helper function is the core of "$object^{type}" parser. Now it is made available to callers outside sha1_name.c
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index e1000bccb..4bfb1ba49 100644
--- a/cache.h
+++ b/cache.h
@@ -499,6 +499,9 @@ extern void *read_object_with_reference(const unsigned char *sha1,
unsigned long *size,
unsigned char *sha1_ret);
+extern struct object *peel_to_type(const char *name, int namelen,
+ struct object *o, enum object_type);
+
enum date_mode {
DATE_NORMAL = 0,
DATE_RELATIVE,