]> git.ipfire.org Git - thirdparty/git.git/blobdiff - object.h
object: add repository argument to object_as_type
[thirdparty/git.git] / object.h
index 2ba23c07a72167ec26fd5092c7a500f90932a0bd..3faa89578fcf164679df8cae99a4b3be0469218a 100644 (file)
--- a/object.h
+++ b/object.h
@@ -114,7 +114,8 @@ struct object *lookup_object_the_repository(const unsigned char *sha1);
 
 extern void *create_object(struct repository *r, const unsigned char *sha1, void *obj);
 
-void *object_as_type(struct object *obj, enum object_type type, int quiet);
+#define object_as_type(r, o, t, q) object_as_type_##r(o, t, q)
+void *object_as_type_the_repository(struct object *obj, enum object_type type, int quiet);
 
 /*
  * Returns the object, having parsed it to find out what it is.