Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-24 11:51:01 +0300
committerJunio C Hamano <gitster@pobox.com>2008-02-18 11:51:05 +0300
commit8177631547e4d10ae071def07eff83e056092bfa (patch)
treeb926ce332cae49c9c9b86ccf824a551923bf76ff /cache.h
parent525ab63950e324823dd45423104cdcf5e46e2610 (diff)
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 e1000bccb2..4bfb1ba499 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,