diff options
author | Stefan Beller <sbeller@google.com> | 2018-06-29 04:22:07 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-29 20:43:39 +0300 |
commit | 94c09a7197cde15587318dbb60cdc591d443f45c (patch) | |
tree | 11a538df56187686a1721d760860ea9681ce99e6 /object.h | |
parent | a962da1ef59c71b6b18f71aeb25f1edaa99769f6 (diff) |
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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |