diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-12-24 00:51:01 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-18 00:51:05 -0800 |
commit | 8177631547e4d10ae071def07eff83e056092bfa (patch) | |
tree | b926ce332cae49c9c9b86ccf824a551923bf76ff /cache.h | |
parent | 525ab63950e324823dd45423104cdcf5e46e2610 (diff) | |
download | git-8177631547e4d10ae071def07eff83e056092bfa.tar.gz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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, |