]> git.ipfire.org Git - thirdparty/git.git/blobdiff - object.h
object: add repository argument to lookup_object
[thirdparty/git.git] / object.h
index 882f47fbc891da4ce292ed868aac7161cf563782..f840a428859eadd9054e9d7dbd4a29b794ab5d8d 100644 (file)
--- a/object.h
+++ b/object.h
@@ -109,7 +109,8 @@ extern struct object *get_indexed_object(unsigned int);
  * half-initialised objects, the caller is expected to initialize them
  * by calling parse_object() on them.
  */
-struct object *lookup_object(const unsigned char *sha1);
+#define lookup_object(r, s) lookup_object_##r(s)
+struct object *lookup_object_the_repository(const unsigned char *sha1);
 
 extern void *create_object(struct repository *r, const unsigned char *sha1, void *obj);