summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-29 01:21:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-29 17:43:38 (GMT)
commit1268dfac1e98e973c63abb142551c64bba6a44ca (patch)
tree44faa405757f42165cffdd0b55c4f836d0a6e652 /object.h
parent1ec5bfd24e57c8d40d3f7d911fb9b85723282a46 (diff)
downloadgit-1268dfac1e98e973c63abb142551c64bba6a44ca.zip
git-1268dfac1e98e973c63abb142551c64bba6a44ca.tar.gz
git-1268dfac1e98e973c63abb142551c64bba6a44ca.tar.bz2
object: add repository argument to object_as_type
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, 2 insertions, 1 deletions
diff --git a/object.h b/object.h
index 2ba23c0..3faa895 100644
--- 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.