From 8bde69b974d20a030506d2de49b7cacfb17a63e7 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Thu, 28 Jun 2018 18:22:11 -0700 Subject: tag: allow lookup_tag to handle arbitrary repositories Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- tag.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tag.h') diff --git a/tag.h b/tag.h index 45b0b08b1f..6a160c9187 100644 --- a/tag.h +++ b/tag.h @@ -11,8 +11,7 @@ struct tag { char *tag; timestamp_t date; }; -#define lookup_tag(r, o) lookup_tag_##r(o) -extern struct tag *lookup_tag_the_repository(const struct object_id *oid); +extern struct tag *lookup_tag(struct repository *r, const struct object_id *oid); #define parse_tag_buffer(r, i, d, s) parse_tag_buffer_##r(i, d, s) extern int parse_tag_buffer_the_repository(struct tag *item, const void *data, unsigned long size); extern int parse_tag(struct tag *item); -- cgit v1.2.3