path: root/cache.h
diff options
authorbrian m. carlson <>2018-03-12 02:27:52 (GMT)
committerJunio C Hamano <>2018-03-14 16:23:50 (GMT)
commit02f0547eaaeeec3446b77a29593f9233cf94d626 (patch)
tree286f46ad2d534800155bf94a4c2bddb455fcac35 /cache.h
parent916bc35b29af6e0f4f215dea9c84e4185de0fec4 (diff)
sha1_file: convert read_object_with_reference to object_id
Convert read_object_with_reference to take pointers to struct object_id. Update the internals of the function accordingly. Signed-off-by: brian m. carlson <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'cache.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index 66f41af..9293c14 100644
--- a/cache.h
+++ b/cache.h
@@ -1431,10 +1431,10 @@ extern int df_name_compare(const char *name1, int len1, int mode1, const char *n
extern int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
extern int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
-extern void *read_object_with_reference(const unsigned char *sha1,
+extern void *read_object_with_reference(const struct object_id *oid,
const char *required_type,
unsigned long *size,
- unsigned char *sha1_ret);
+ struct object_id *oid_ret);
extern struct object *peel_to_type(const char *name, int namelen,
struct object *o, enum object_type);