summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-08 19:37:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-09 03:12:37 (GMT)
commit341e45e46bba094ef1274957ef5891f43e91b344 (patch)
tree3312feb238421605093636d92fe4b4d3db2a518d /object.h
parent346a817a7271b58811a8004fa225ab88bc94e9c3 (diff)
downloadgit-341e45e46bba094ef1274957ef5891f43e91b344.zip
git-341e45e46bba094ef1274957ef5891f43e91b344.tar.gz
git-341e45e46bba094ef1274957ef5891f43e91b344.tar.bz2
object: allow create_object to handle arbitrary repositories
Reviewed-by: Jonathan Tan <jonathantanmy@google.com> 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 2cb0b24..b41d7a3 100644
--- a/object.h
+++ b/object.h
@@ -93,8 +93,7 @@ extern struct object *get_indexed_object(unsigned int);
*/
struct object *lookup_object(const unsigned char *sha1);
-#define create_object(r, s, o) create_object_##r(s, o)
-extern void *create_object_the_repository(const unsigned char *sha1, void *obj);
+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);