summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-29 01:22:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-29 17:43:39 (GMT)
commit94c09a7197cde15587318dbb60cdc591d443f45c (patch)
tree11a538df56187686a1721d760860ea9681ce99e6 /object.h
parenta962da1ef59c71b6b18f71aeb25f1edaa99769f6 (diff)
downloadgit-94c09a7197cde15587318dbb60cdc591d443f45c.zip
git-94c09a7197cde15587318dbb60cdc591d443f45c.tar.gz
git-94c09a7197cde15587318dbb60cdc591d443f45c.tar.bz2
object: allow lookup_object to handle arbitrary repositories
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.h')
-rw-r--r--object.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/object.h b/object.h
index 6f3271e..0d7d741 100644
--- a/object.h
+++ b/object.h
@@ -109,8 +109,7 @@ extern struct object *get_indexed_object(unsigned int);
* half-initialised objects, the caller is expected to initialize them
* by calling parse_object() on them.
*/
-#define lookup_object(r, s) lookup_object_##r(s)
-struct object *lookup_object_the_repository(const unsigned char *sha1);
+struct object *lookup_object(struct repository *r, const unsigned char *sha1);
extern void *create_object(struct repository *r, const unsigned char *sha1, void *obj);